Install nodejs + nvm

git clone git://github.com/creationix/nvm.git ~/.nvm
. ~/.nvm/nvm.sh  //nvm can install and switch to multiple version of nodejs easily
nvm install v0.6.7 
nvm ls //list all nodejs version installed
cd ~/.nvm/v0.6.7/bin  //nodejs default directory 
 
curl http://npmjs.org/install.sh | sh  //install npm
npm -d install //install dependent module from package.json
Help Share this Article