You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Welcome to our guide on how to install Node.js 10|12 LTS on Ubuntu 18.04 / 16.04 / Debian 10/9. Node 10 became LTS version starting from Node v10.13.0. This LTS release of Node (Dubnium) will be supported until April 2020. Node.js 12 will enter LTS state on 2019-10-22 and this is expected to reach EOL on 2022-04-01.

Installing Node.js 12|10 LTS on Ubuntu 19.04/18.04/ 16.04 & Debian 9

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

Node.js 12:

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.

Install Node.js 10|12 LTS on Ubuntu & Debian

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 -v
v10.15.3

$ node -v
v12.13.0

Thanks for installing Node.js 10 LTS on Ubuntu 19.04/18.04 / 16.04 & Debian 10/9 with our guide. Stay connected for more interesting How-To guides and Infrastructure setups tutorials.

You can also check:

How to Install Node.js 12 on Ubuntu / Debian / Linux Mint

How to Install R & RStudio on Ubuntu / Debian / Linux Mint

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here