Install Node.js

This guide will cover installation of Node.js 13 on Ubuntu from binary package.

Step 1: Update System

Ensure you have the latest updates for Ubuntu.

sudo apt -y update && sudo apt -y upgrade

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

After system update, install Node.js 13 on Ubuntu by first installing the required repository.

curl -sL | sudo bash -

Once the repository is added, you can begin the installation of Node.js 13 on Ubuntu.

sudo apt-get install -y nodejs

Use the following command to check installed version of Node.

$ node -v

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

 sudo apt-get install gcc g++ make

The Yarn package manager can be installed by running the commands:

curl -sL | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

There you have it. Node.js 13 Current has been installed on Ubuntu.