Skip to content
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

SkipDependencies parameter not found in Install-Package #551

Open
PrabhuKGP opened this issue Jan 16, 2025 · 0 comments
Open

SkipDependencies parameter not found in Install-Package #551

PrabhuKGP opened this issue Jan 16, 2025 · 0 comments

Comments

@PrabhuKGP
Copy link

PrabhuKGP commented Jan 16, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant