insall npm ubuntu code example
Example 1: install node js using nvm ubuntu
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
Example 2: install nodejs from ubuntu 18.04
sudo bash nodesource_setup.sh
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
sudo bash nodesource_setup.sh