Closed variableresistor closed 2 weeks ago
Hi @variableresistor, please run Set-PSResourceRepository PSGallery -ApiVersion V2
. I'm not sure how the ApiVersion
got set to unknown
but it should be v2
to interact with the PowerShell Gallery.
Yeah, totally surprised me too. And I work with NuGet repos all day. I wonder if it's some sort of default setting when installing PowerShell. I'll run that at the office tomorrow and will try it out on some other fresh Windows 11 machines.
That worked. Will reopen if it surfaces again on a fresh install.
Prerequisites
Steps to reproduce
This works perfectly fine using the existing PowerShellGet module:
Here is a list of registered repositories:
Results in:
Here's the contents of my PSResourceRepository.xml file:
Expected behavior
Actual behavior
Environment data
Visuals
No response