Tried to add/edit environment variables and come to conclude that:
User variables
(of the upper box) instead of System variables
(of the lower part); otherwise you have to "run as administrator" to get it work.;%AppData%\npm
to Path
in order to use it as a command line tool (if supported, like jshint
and grunt-cli
).NODE_PATH
and set it %AppData%\npm\node_modules
in order to require('<pkg_name>')
in scripts without install it in the project directory. (But npm link
is suggested for this requirement if you're working on OS with mklink
such as Vista and newer.)Test environment: