Unable to Install Az Modules
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- powershell
- Domaine
- devops
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- PowerShell
- Étoiles
- 289
- Forks
- 83
- Merge moyen
- 1 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PowerShell/PowerShellGallery
-
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
PowerShell/PowerShellGallery#357 · 3 commentaires · 4 réactions ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
PowerShell/PowerShellGallery#355 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 31/100
PowerShell/PowerShellGallery#354 · 1 commentaire · 3 réactions ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
PowerShell/PowerShellGallery#353 · 5 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
PowerShell/PowerShellGallery#350 · 7 commentaires · 8 réactions ·
Toutes les issues de PowerShell/PowerShellGallery
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
cython/cython#8110 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100