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

npm warns about --global deprecation #305

Open
ProspectPyxis opened this issue Jun 9, 2022 · 1 comment
Open

npm warns about --global deprecation #305

ProspectPyxis opened this issue Jun 9, 2022 · 1 comment

Comments

@ProspectPyxis
Copy link

When this plugin is installing packages from .default-npm-packages, it uses the -g flag. However, in new versions of npm, this gives a deprecation warning:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

Looking at the source of this plugin, this should be an easy fix - I'm more worried about whether swapping flags here would be a breaking change for older npm versions?

@augustobmoura
Copy link
Member

This is a hard one, we still want to support older versions of npm, so I'm leaning towards keeping it until we have a true breakage in NPM's API. After that the way only would to do it would be to probably change the command conditionally, depending on the current version of npm

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

2 participants