Categories
Microsoft PowerShell

Unable to resolve package source ‘https://www.powershellgallery.com/api/v2’

I was running a command to install a PowerShell module, e.g.

Install-Module -Name navcontainerhelper -Force

while I received the following error message:

Unable to resolve package source ‘https://www.powershellgallery.com/api/v2’

Solution:

Run PowerShell as Administrator and run the following command to force to use TLS1.2 protocol

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Did my solution solve your problem? Leave a reply.

1 reply on “Unable to resolve package source ‘https://www.powershellgallery.com/api/v2’”

This was exactly what I needed, thanks so much!!! The answer was so straightforward I wasn’t really sure this has much “substance” (no offense intended) but the solution really was that precise and effective, so thank you very much for posting this!! Cheers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.