Using nvm

Not sure if this works on Windows.

curl | sh
source ~/.bash_profile
nvm install 0.10
nvm alias default 0.10

This will put all of your node modules within your home directory, and so will not require SUDO at all.


To install modules for Node.js, you use npm, which has a configuration file .npmrc.

By default, instructions relating to npm tend to result in you needing to be root / Administrator and involve -g. There are a number of disadvantages to this.


Everything else

For more information

npm_rc (last edited 2014-01-08 15:03:36 by AndrewGrieve)