Change default global installation directory for node.js modules in Windows?

Posted by gremo on Stack Overflow See other posts from Stack Overflow or by gremo
Published on 2013-11-09T09:49:30Z Indexed on 2013/11/09 9:53 UTC
Read the original article Hit count: 167

Filed under:
|

In my windows installation PATH includes C:\Program Files\nodejs, where executable node.exe is. I'm able to launch node from the shell, as well as npm. I'd like new executables to be installed in C:\Program Files\nodejs as well, but it seems impossible to achieve.

Setting NODE_PATH and NODE_MODULES variables doesn't change anything: things are still installed in %appdata%\npm by default.

How can I change the global installation path?

© Stack Overflow or respective owner

Related posts about node.js

Related posts about npm