- This topic has 1 reply, 1 voice, and was last updated 3 weeks, 4 days ago by
June 11, 2020 at 2:31 am #234442ParticipantTopics: 1Replies: 0Points: 31Rank: Member
I’m new to PowerShell taking an online course to learn the ropes. I got to the section on Modules and everything was fine until I issued the Find-Module command.
Warning: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
I’m running PSVersion
Major Minor Build Revision 5 1 14409 1018
I found this aritcle relating to this warning: https://stackoverflow.com/questions/53358723/unable-to-find-repository-on-update-module
But this fix this does I can’t do because I get another error:
Register-PSRepository: The specified Uri 'https://www.powershellgallery.com/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure it meets the Web Uri requirements.
I’m stuck at this point I don’t know what to do.
Not sure what info is pertinent but I’m running these version of PowerShellGet and PackageManagement:
PowerShellGet = 2.2.3
PackageManagement = 1.4.6
Also here is the output of Get-PSRepository:
Name InstallationPolicy SourceLocation ---- ------------------ -------------- PSGallery Untrusted https://www.powershellgallery.com/api/v2
Any help would be greatly appreciated. I don’t want to continue on my course until I’ve got a grasp on modules!
June 12, 2020 at 11:36 am #235381Senior ModeratorTopics: 9Replies: 1236Points: 4,443Rank: Community Hero
It says unable to resolve. Are you connected to internet ?
- You must be logged in to reply to this topic.