Unable to Install Az Modules
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- powershell
- Ambito
- devops
Direzione di ricerca
Start by investigating the NuGet provider download and installation path used by Install-Module with PowerShell 5.1 and PSGallery. Reproduce the reported failure and trace why the provider URLs cannot be downloaded or matched. The issue gives no repository files or tests to start from; done means the reported installation succeeds and the failure is covered by an appropriate test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
- Run : Install-Module -Name Az -Repository PSGallery -Force
- Asks permission to accept "NuGet provider is required to continue" provide 'Y'
Experiencing below mentioned error when trying to install Az modules using powershell
Expected behavior
Installed Successfully
Actual behavior
PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has
the tags.
Error details
WARNING: Unable to download from URI 'https://onegetcdn.azureedge.net/providers/nuget-2.8.5.208.package.swidtag' to ''.
WARNING: Unable to download from URI 'https://onegetcdn.azureedge.net/providers/nugetv2.feed.swidtag' to ''.
WARNING: Unable to download from URI 'https://onegetcdn.azureedge.net/providers/psl.feed.swidtag' to ''.
PackageManagement\Get-PackageProvider : Unable to find package provider 'NuGet'. It may not be imported yet. Try 'Get-PackageProvider -ListAvailable'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7478 char:30
+ ... tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...PackageProvider:GetPackageProvider) [Get-PackageProvider], Exception
+ FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageProvider
Install-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.
At line:1 char:5
+ Install-Module -Name Az -Repository PSGallery -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Module], InvalidOperationException
+ FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Install-Module
Environment data
Name Value
---- -----
PSVersion 5.1.20348.2849
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.2849
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version
5.1.20348.2849
Visuals
No response
- Lingua principale
- PowerShell
- Stelle
- 289
- Fork
- 83
- Merge medio
- 1m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/PowerShellGallery
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
PowerShell/PowerShellGallery#357 · 3 commenti · 4 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
PowerShell/PowerShellGallery#355 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 31/100
PowerShell/PowerShellGallery#354 · 1 commento · 3 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PowerShell/PowerShellGallery#353 · 5 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PowerShell/PowerShellGallery#350 · 7 commenti · 8 reazioni ·
Tutte le issue di PowerShell/PowerShellGallery
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
awslabs/route53-dynamic-dns-with-lambda#67 · 1 commento ·
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
post-v4
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
alunduil/alunduil-infrastructure#1052 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno