Skip to content

SkipDependencies parameter not found in Install-Package #551

Description

@PrabhuKGP

I was trying to install newtonsoft.json using Install-Module. But was getting the error Dependency loop detected for package newtonsoft.json. Since there is no -SkipDependencies parameter in Install-Module, switched Install-Package command.

Tried to install using Install-Package,

Install-Package -Name Newtonsoft.Json -Source PSGalleryUpstream -Credential $myCredentialsObject -Scope CurrentUser -Force -SkipDependencies;

Result
image

According to the documentation: https://learn.microsoft.com/en-us/powershell/module/packagemanagement/install-package?view=powershellget-2.x#-skipdependencies, -SkipDependencies is a parameter for Install-Package (PackageManagement)

Environment
image

If I have to continue with Install-Module, what are the dependency packages I need to install to skip the deadlock.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions