Installation of Node.js on an Ubuntu system. At the time of this writing, the stable version is 10.16.2 (LTS) and the current version is 12.8.0.



  • Ubuntu 18 and above


Download and install via the package manager

Current version : 12.x

$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

$ sudo apt-get install -y nodejs


Stable and LTS version: 10.16.2

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

$ sudo apt-get install -y nodejs

Install via snap

Current version: 12.x

$ sudo snap install node --classic --channel=12

Stable and LTS version : 10.16.2

$ sudo snap install node --classic --channel=10


01. To test if the installation and scripts are working

$ curl -sL https://deb.nodesource.com/test | bash -

02. Check the version

$ node --version




Previous Python - In Different Sectors
Next If Simple Logic Isn’t Working With Your Internet Company, Try Zermelo-Fraenkel Set Theory