Install-Module Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
Garima-msft opened this issue · 1 comments
Garima-msft commented
Install-Module Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
Steps to reproduce
Install-Module AzSK.ADO -AllowClobber -Scope CurrentUser -ForceExpected behavior
Package should be installed
Actual behavior
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'AzSK.ADO'. Try Get-PSRepository to see all available registered module
repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Environment data
> [Net.ServicePointManager]::SecurityProtocol
Tls, Tls11, Tls12
> $PSVersionTable
```Name Value
---- -----
PSVersion 5.1.18362.752
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.752
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```powershell
> Get-Module -ListAvailable PowerShellGet,PackageManagement
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 1.0.0.1 PackageManagement {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Module...} > Get-PackageProvider -ListAvailable
Name Version DynamicOptions
---- ------- --------------
msi 3.0.0.0 AdditionalArguments
msu 3.0.0.0
NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate
PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, Filter, Tag, Includes, DscResourc...
Programs 3.0.0.0 IncludeWindowsInstaller, IncludeSystemComponent alerickson commented
Hi @Garima-msft I believe this is likely due this issue on the PSGallery: PowerShell/PowerShellGallery#157. Please bear with us as we resolve this issue. Please follow that open issue for more updates.