Thursday, October 16, 2025
HomeGuest BlogsInstall Node.js 10,12 LTS on Ubuntu 22.04|20.04|18.04|16.04

Install Node.js 10,12 LTS on Ubuntu 22.04|20.04|18.04|16.04

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

Welcome to our guide on how to install Node.js 10|12 LTS on Ubuntu 22.04|20.04|18.04|16.04. Node 10 became LTS version starting from Node v10.13.0. This LTS release of Node (Dubnium) was supported until April 2020. Node.js 12 entered LTS state on 2019-10-22 and is expected reached EOL on 2022-04-01.

Install Node.js 12,10 LTS on Ubuntu 22.04|20.04|18.04|16.04

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. To install Node.js 12.x & 10.x LTS on Ubuntu 22.04|20.04|18.04|16.04, Add NodeSource binary distributions repository.

Node.js 12:

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}
sudo apt update
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

Node.js 10:

sudo apt update
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash

This command will configure Node.js APT repository to your OS.

After adding the repository, install Node.js 12|10 LTS  on Ubuntu 18.04 /16.04 / Debian 10/9 using the apt package manager.

sudo apt update
sudo apt -y install gcc g++ make
sudo apt -y install nodejs

To install the Yarn package manager, run:

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

Confirm Node version

# Node.js 10
$ node -v
v10.15.3

# Node.js 12
$ node -v
v12.22.7

Thanks for installing Node.js 10 LTS on Ubuntu 22.04|20.04|18.04|16.04 with our guide. Stay connected for more interesting How-To guides and Infrastructure setups tutorials.

You can also check:

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11953 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS