Change global nodejs location
- Install into c:\tools\vendor\nodejs
- Create folder c:\tools\vendor\nodejs\npm-cache
- Create folder c:\tools\vendor\nodejs\etc
- Set NODE environment variable as c:\tools\vendor\nodejs
- Ensure %NODE% environment is added to %PATH%
- Set NODE_PATH environment variable as c:\tools\vendor\nodejs\node_modules
- Edit %NODE_PATH%\npm\npmrc with the following content prefix=c:\tools\vendor\nodejs
- npm config --global set prefix "c:\tools\vendor\nodejs"
- npm config --global set cache "c:\tools\vendor\nodejs\npm-cache"
- npm -g install npm@latest
- install any npm module
npmrc
prefix=c:\tools\vendor\nodejs
cache=c:\tools\vendor\npm-cache
strict-ssl=false
registry=http://registry.npmjs.org/
proxy=http://proxy.myplace.com:3128/
https-proxy=http://proxy.myplace.com:3128/
http-proxy=proxy.myplace.com:3128