node on ubuntu

instal node

  • install nvm curl https://raw.github.com/creationix/nvm/master/install.sh | sh
  • nvm install 0.10.26 ## latest version
  • copying whatever version of node you have active via nvm into the /usr/local/ directory n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local

install needed packages

  • pm2 add --unsafe-perm
  • bower
  • grunt
  • mocha
  • express

source