Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

PSResourceGet 1.3.0-preview2 error when installing AZ Module

Abierto
#2,061 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, powershell
Área
cli, tooling

Línea de trabajo

Start by reproducing the reported failure with Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery on PSResourceGet 1.3.0-preview2, then compare with 1.2.0 as the issue reports. Trace the Install-PSResource failure path; the issue does not identify a source file or test. Done means the AZ module installs without error in the reported environments.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Needs-Triage
Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.
Steps to reproduce

When using the Microsoft.PowerShell.PSResourceGet 1.3.0-preview2 i've got an error when installing the AZ 16.4.0 PowerShell Module in PowerShell 5.1 and 7.6.6

Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery

Image Image

Works fine in Microsoft.PowerShell.PSResourceGet 1.2.0

Expected behavior
Install-PSResource without error
Actual behavior
`Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery` throws an error
Error details
get-error

Exception             :
    Type    : Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceNotFoundException
    Message : Package(s) 'AZ' could not be installed from repository 'PSGallery'.
    HResult : -2146233088
TargetObject          : Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource
CategoryInfo          : InvalidData: (Microsoft.PowerShel…s.InstallPSResource:InstallPSResource) [Install-PSResource],
ResourceNotFoundException
FullyQualifiedErrorId : InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource
InvocationInfo        :
    MyCommand        : Install-PSResource
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 3
    Line             : Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
    Statement        : Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
    PositionMessage  : At line:1 char:1
                       + Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : Install-PSResource
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
      0
      1
Environment data
Get-InstalledPSResource -name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser

Name                               Version Prerelease Repository Description
----                               ------- ---------- ---------- -----------
Microsoft.PowerShell.PSResourceGet 1.3.0   preview2   PSGallery  PowerShell module with commands for discovering, inst…

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.6.6
PSEdition                      Core
GitCommitId                    7.6.6
OS                             Microsoft Windows 10.0.26300
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Visuals

No response

Lenguaje dominante
C#
Estrellas
577
Forks
114
Merge medio
14 h 27 min
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PowerShell/PSResourceGet

Todos los issues de PowerShell/PSResourceGet

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.