Install NodeJS and NPM on Ubuntu

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install build-essential
sudo npm -g install npm@latest-2

This will install the latest version of NodeJS and NPM, works fine as an method to upgrade as well.

Add your comment