How to update nodejs on Ubuntu (Debian)
Thanks StackOverflow!
First method: Through NPM
sudo npm cache clean -fsudo npm install -g nsudo n stablenode -v
Second method: Through NVM
curl https://raw.github.com/creationix/nvm/master/install.sh | shsource ~/.profilenvm install 0.10.26nvm use v0.10.26which nodenode -v- install node globally (ie, into /usr/local)
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local
