Install nodejs + nvm

WE HAVE MOVED!

Please visit our new Drupal Website at https://www.xenyo.com我們的新網頁設計公司網頁.

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