npm install latest ubuntu code example
Example 1: install npm ubuntu
sudo apt update
sudo apt install nodejs
sudo apt install npm
Example 2: install node and npm ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install -y nodejs