
How to install latest nodejs version on Ubuntu/Linux using CLI
Following are steps to install latest version of nodejs in Ubuntu or Linux
Ubuntu
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
If curl is not installed on your system then type following command
sudo apt install curl
Debian
curl -sL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
Ubuntu install node LTS
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
Debian install node LTS
curl -sL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
Ubuntu install node Current
curl -sL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt-get install -y nodejs
Debian install node Current
curl -sL https://deb.nodesource.com/setup_current.x | bash -
apt-get install -y nodejs
Resource :- https://github.com/nodesource/distributions