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

How can i stop this package for globals? #10

Open
mattpilott opened this issue Feb 5, 2019 · 1 comment
Open

How can i stop this package for globals? #10

mattpilott opened this issue Feb 5, 2019 · 1 comment

Comments

@mattpilott
Copy link

Hey,

I use preferred pm to inform npm-check and at a project level this works well. However it often causes issues around global packages, in that after you update the package it seems to still be available for update. I would very much like a way to turn off preferred pm to global scipts.

Thanks!

@zkochan
Copy link
Owner

zkochan commented Feb 5, 2019

if this runs in a lifecycle script, you may check process.env.npm_config_global

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