Skip to content

Install-PSResource fails with ExternalModuleDependencies #1809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
ThomasNieto opened this issue Mar 28, 2025 · 1 comment
Open
3 tasks done

Install-PSResource fails with ExternalModuleDependencies #1809

ThomasNieto opened this issue Mar 28, 2025 · 1 comment
Labels
Area-Install Issue-Bug Something isn't working

Comments

@ThomasNieto
Copy link
Contributor

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

Install-PSResource AnyPackage.Appx

Expected behavior

Module installs successfully

Actual behavior

Install fails due to it not properly checking ExternalModuleDependencies

Error details

Exception             :
    Type    : Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceNotFoundException
    Message : Package(s) 'anypackage.appx' 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 anypackage.appx -Verbose -TrustRepository
    Statement        : Install-PSResource anypackage.appx -Verbose -TrustRepository
    PositionMessage  : At line:1 char:1
                       + Install-PSResource anypackage.appx -Verbose -TrustRepository
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : Install-PSResource
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
      0
      1

Environment data

7.6.0-preview.3

Binary     1.1.1                 Microsoft.PowerShell.PSResourceGet

Visuals

No response

@peetrike
Copy link

also, #1467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Install Issue-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants