PowerShell / PowerShellGallery

228 stars 65 forks source link

Cannot install module and browse gallery #107

Open avezinaATastus opened 4 years ago

avezinaATastus commented 4 years ago

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.

mib82 commented 3 years ago

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