Overview
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.
From our partners:
Prerequisites
- 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
Test
01. To test if the installation and scripts are working
$ curl -sL https://deb.nodesource.com/test | bash -
02. Check the version
$ node --version
For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!
Our humans need coffee too! Your support is highly appreciated, thank you!