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

NODE_PATH not getting set? #82

Open
jacobrillema opened this issue Aug 2, 2019 · 2 comments
Open

NODE_PATH not getting set? #82

jacobrillema opened this issue Aug 2, 2019 · 2 comments

Comments

@jacobrillema
Copy link

jacobrillema commented Aug 2, 2019

I am trying to use npm-check with my current set node version for global updates but it fails to execute because NODE_PATH is not configured. Do we need to do this manually for npm-check to be compatible with ps-nvm? I added the folder below and npm-check no longer throws the error but it never finds the correct nvm node_modules folder.

Be default npm-check on Windows looks here if NODE_PATH is not set.

C:\Users\jacob\AppData\Roaming\npm\node_modules

Can we add this to Set-NodeVerion $env:NODE_PATH = npm root -g

@aaronpowell
Copy link
Owner

I'll admit, I've never used npm-check, but I don't see any harm in adding that.

Can you send a PR for it?

@jacobrillema
Copy link
Author

Sure I will create one for us. I also created a new issue. I just tried running npm-check to upgrade my npm to a new version and it failed.

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