Install Node.js 14 on Ubuntu 20.04 / 18.04 and Debian 10/9

The
You can download this article in PDF format to support us through the following link.

Download the guide in PDF format

turn off
The

The
The

Node.js is a server-side JavaScript language based on the following: V8 JavaScript engine From Google. Node.js allows you to write server-side JavaScript applications. It provides an I / O model based on events and non-blocking operations, enabling you to write efficient applications. Node.js is known for its large modular ecosystem npm. This guide will guide you through the steps to install Node.js 14 on Ubuntu 20.04 / 18.04 and Debian 10/9.

Node.js 14 was released on 2020-04-21 and is expected to enter the active LTS state on 2020-10-20. The maintenance period will start from 2021-10-19 and is expected to reach the service life by 2023-04-30.

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

Install Node.js 14 on Ubuntu 20.04 / 18.04 and Debian 10/9

We will use the Node.js Binary Distributions installer script to set up Node.js 14 on Ubuntu 20.04 / 18.04 and Debian 10/9 Linux systems.

Step 1: Update the APT index

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

sudo apt update

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

After the system is updated, first install the required repositories and install Node.js 14 on Ubuntu / Debian.

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

The above script will create an apt source list file for the NodeSource Node.js 14.x repository:

$ 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

After adding the repository, you can start installing Node.js 14 on Ubuntu & Debian Linux:

sudo apt -y install nodejs

Verify the version of Node.js installed.

$ node  -v
v14.0.0

If you need node development tools, use the following command to install them:

 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 have already introduced the simple steps required to install Node.js 14 on Ubuntu 20.04 / 18.04 and Debian 10/9. Experience your back-end software development.

The best book to learn Node.js / AngularJS / ReactJS / ExpressJS

The
You can download this article in PDF format to support us through the following link.

Download the guide in PDF format

turn off
The

The
The

Sidebar