Main icon indicating copy to clipboard operation
Main copied to clipboard

NODE_PATH not be set in the nodejs install process

Open 8ar10der opened this issue 5 years ago • 0 comments

When I use npm-check -g to check my global packages, I will get the error:

Path "C:\Users\tiger\AppData\Roaming\npm\node_modules" does not exist. Please check the NODE_PATH environment variable.For more detail, add --debug to the command

I found the global packages be installed in the

C:\Users\<username>\scoop\persist\nodejs\bin\node_modules

The scoop should set the system variable NODE_PATH to the path when user install nodejs and npm

C:\Users\<username>\scoop\persist\nodejs\

8ar10der avatar Feb 11 '20 18:02 8ar10der