installing node js on ubuntu code example
Example 1: install node js ubuntu
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
node -v
npm -v
Example 2: node ubutun
sudo apt-get update
sudo apt-get install nodejs npm
Example 3: install nodejs on ubuntu
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
node -v
Example 4: node install ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
Example 5: node ubutun
sudo curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
Example 6: node ubutun
sudo chmod +x /usr/local/bin/n