PnP.PowerShell Can't Install From https://www.powershellgallery.com/api/v2 #742
Unanswered
GS-Yuki-Tsuno
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran Install-Module -Name "PnP.PowerShell" from PowerShell 7.1.3 on windows 10 but couldn't install due to the following issues:
Please let me know if anyone has the perspective needed to investigate.
PS E: \ UserProfile \ onsiteadmin> Install-Module -Name "PnP.PowerShell" -Verbose
VERBOSE: Using the provider'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider'NuGet'.
VERBOSE: The specified Location is'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is'NuGet'.
WARNING: Unable to resolve package source'https://www.powershellgallery.com/api/v2'.
VERBOSE: Total package yield: '0' for the specified package'PnP.PowerShell'.
Install-Package: C: \ program files \ powershell \ 7 \ Modules \ PowerShellGet \ PSModule.psm1: 9711
Line |
9711 |… talledPackages = PackageManagement \ Install-Package @PSBoundParameters
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
| No match was found for the specified search criteria and module name'PnP.PowerShell'. Try
| Get-PSRepository to see all available registered module repositories.
Invoke-WebRequest'https://www.powershellgallery.com/api/v2/'
If you execute, you can get the following result, so I think that you can access the repository.
StatusCode: 200
StatusDescription: OK
Content: <service xml: base = "https://www.powershellgallery.com/api/v2" xmlns = "http://www.w3" .org/200
7 / app "xmlns: atom =" http://www.w3.org/2005/Atom "> <atom: title ty…
RawContent: HTTP / 1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Server: Microsoft-IIS / 10.0
X-CorrelationId: 80006393-0801-ec00-b63f-84710c7967bb
DataServiceVersion: 3.0
Content-Security-Policy: frame-a…
Headers: {[Cache-Control, System.String []], [Pragma, System.String []], [Server, System.String []], [X-CorrelationId, System.String []]…}
Images: {}
InputFields: {}
Links: {}
RawContentLength: 338
RelationLink: {}
Beta Was this translation helpful? Give feedback.
All reactions