update npm latest version ubuntu code example
Example 1: update npm version ubuntu
npm install -g npm
Example 2: update node js version ubuntu
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
npm install -g npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable