Skip to content

SkipDependencies parameter not found in Install-Package #551

@PrabhuKGP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions