Forum Discussion
Anoop Kv
Apr 09, 2020Copper Contributor
WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/.....' is not valid
Hello, I was trying install the PowerShell Module to a server and getting error message with not valid url. Debug log attached. PS C:\windows\system32> Install-Module SharePointPnPPowerSh...
D_wilkie
Apr 15, 2020Copper Contributor
Anoop Kv, using TLS 1.2 fixed the issue for me. please reference this:
https://community.spiceworks.com/topic/2265662-powershell-get-download-problem
shoyheim
Nov 13, 2020Copper Contributor
Didn't work for me, I needed to add repo to nuget pm...
This fixed it:
Register-PackageSource -Name PSNuGet -Location https://www.powershellgallery.com/api/v2 -ProviderName NuGet
- SumanthB77Sep 19, 2021Copper Contributor
shoyheim Thanks. it worked for me..have been searching for a solution more than 2 days.Finally found it.
- yf611xJun 30, 2021Copper Contributor
thanks, this works for me.
Register-PackageSource -Name PSNuGet -Location "https://www.powershellgallery.com/api/v2" -ProviderName NuGet