How To

Install Node.js 14 on Ubuntu / Debian / Linux Mint

In this guide, we will cover installation of Node.js 14 on Ubuntu / Debian / Linux Mint. Node.js is a server-side JavaScript language based on the V8 JavaScript engine for writing server-side JavaScript applications.

Original content from computingforgeeks.com - post 52695
install nodejs ubuntu 18.04 debian 9

Node.js 14 was released on 2020-04-21 and is expected to enter active LTS state on 2020-10-20. The maintenance window will start on 2021-10-19 and is expected to reach End-of-life on 2023-04-30.

For CentOS / RHEL installation: Install Node.js 14 on CentOS & RHEL

Install Node.js 14 on Ubuntu / Debian / Linux Mint

We will use the Node.js Binary Distributions installer script to setup Node.js 14 on Ubuntu / Debian / Linux Mint Linux machine

Step 1: Update APT index

Run the apt update command on your Ubuntu / Debian Linux to update package repository contents database.

sudo apt update

Step 2: Install Node.js 13 on Ubuntu / Debian / Linux Mint Linux

After system update, install Node.js 14 on Ubuntu / Debian / Linux Mint by first installing the required repository.

curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

You can validate that the repository was added by checking file contents.

$ cat /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_14.x focal main
deb-src https://deb.nodesource.com/node_14.x focal main

Once the repository is added, you can begin the installation of Node.js 14 on Ubuntu / Debian / Linux Mint machine:

sudo apt -y install nodejs

Verify the version of Node.js installed.

$ node  -v
v14.19.3

If you need Node Development tools, install them with the command:

sudo apt -y install gcc g++ make

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 update && sudo apt install yarn

You now have Node.js 14 installed on Ubuntu / Debian / Linux Mint.

Keep reading

Upgrade Ubuntu 24.04 to Ubuntu 26.04 LTS (Step by Step) Ubuntu Upgrade Ubuntu 24.04 to Ubuntu 26.04 LTS (Step by Step) UFW Firewall Commands with Examples on Ubuntu 24.04 / 22.04 Security UFW Firewall Commands with Examples on Ubuntu 24.04 / 22.04 Ubuntu 26.04 LTS (Resolute Raccoon): New Features, Changes, and What to Know Ubuntu Ubuntu 26.04 LTS (Resolute Raccoon): New Features, Changes, and What to Know Install PostgreSQL 19 on Ubuntu, Debian, Rocky Linux & AlmaLinux AlmaLinux Install PostgreSQL 19 on Ubuntu, Debian, Rocky Linux & AlmaLinux Install OrientDB on Ubuntu 26.04 / 24.04 / 22.04 Databases Install OrientDB on Ubuntu 26.04 / 24.04 / 22.04 Installing k3s on Ubuntu 24.04 (Noble Numbat) Cloud Installing k3s on Ubuntu 24.04 (Noble Numbat)

Leave a Comment

Press ESC to close