Quantcast
Viewing all articles
Browse latest Browse all 123

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

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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.

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


Viewing all articles
Browse latest Browse all 123

Trending Articles