Main
Main copied to clipboard
NODE_PATH not be set in the nodejs install process
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\