How to Install Node.js LTS on Ubuntu

How to Install Node.js LTS on Ubuntu

Node.js is a runtime JavaScript platform built on top of the V8 JavaScript engine, where Node.js can execute JavaScript on the server (server-side). Node.js was developed by Ryan Dahl and released for the first time on May 27, 2009.

Node.js is available in 2 release versions, LTS (Long Term Support) for long-term support, can get updates for up to 3 years, and the standard release version only gets updates for up to 8 months.

Install Node.js LTS

Node.js can be installed in several ways, here using the .deb binary distributions for the Linux distro Ubuntu or Debian.

Node.js is available in the default Ubuntu repository, but the version can be an old version or not an LTS version.

Add the Node.js LTS repository to install the LTS version of Node.js.

Install the nodejs package.

The installed LTS version is the latest LTS version. For example, there are currently 2 active LTS versions, 12 LTS and 14 LTS versions, so what is installed is Node.js 14 LTS.

Verify that Node.js is installed by displaying the release version of node and npm.

Check the node version.

Check the npm version.

Good luck 🙂

Default image
Musa Amin
I am a Linux System Administrator and also write many tutorials about Linux, Cloud, and Open Source. Hire me via email hai[at]musaamin.web.id.

Leave a Reply