PowerShellGallery icon indicating copy to clipboard operation
PowerShellGallery copied to clipboard

Cannot install module and browse gallery

Open avezinaATastus opened this issue 5 years ago • 1 comments

My jobs in Azure Pipelines are failing because I cannot install my dependancies from the PSGallery :

PackageManagement\Install-Package : Unable to resolve module reference ''.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34

And I sometimes get some Error 500 while browsing the website. I had a few sooner today, but could not repro again when I got the problem in my pipeline again. Just tried again ( https://www.powershellgallery.com/packages/DellBIOSProvider/2.3.0 ), and it happend.

avezinaATastus avatar Jun 26 '20 20:06 avezinaATastus

I had the same error Unable to resolve module reference with PowerShellGet.

Solution: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module -Name PowerShellGet

Microsoft documentation: https://docs.microsoft.com/en-us/powershell/module/powershellget/?view=powershell-7.1

mib82 avatar Jan 22 '21 12:01 mib82