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...
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
yf611x
Jun 30, 2021Copper Contributor
thanks, this works for me.
Register-PackageSource -Name PSNuGet -Location "https://www.powershellgallery.com/api/v2" -ProviderName NuGet