install nodejs LTS ubuntu 18.04 code example
Example 1: node ubutun
sudo apt-get update
sudo apt-get install nodejs npm
Example 2: node ubutun
sudo curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
sudo apt-get update
sudo apt-get install nodejs npm
sudo curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n