how to update npm on node ubuntu code example
Example 1: npm inatall latest version ubuntu
// update latest version NPM
sudo npm install -g npm@latest
//update to next version NPM
sudo npm install -g npm@next
Example 2: how to update node in ubuntu 18.04
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs