Cover image for How to install latest Node on Ubuntu

How to install latest Node on Ubuntu

raphaelchaula profile image Raphael Chaula ・1 min read

Since ppa installs older version of Node, we opt to different approach instead.

Follow the steps below:

Step 1: Go to Node official website and download the latest version.

A screenshot of Node official website homepage

There are two options given; LTS (Recommended for most users) and Current (Latest features), choose any of your interest.

Step 2: Extract the compressed Node folder (.tar.xz) you just downloaded.

A screenshot of my Downloads directory (Ubuntu)

I extracted Node compressed folder (node-v10.16.3-linux-x64.tar.xz) to Node normal folder (node-v10.16.3-linux-x64).

Step 3: Rename the Node normal folder to some name readable.

I renamed the folder to node.

Step 4: Open the directory you are, in Terminal (Options -> Open in Terminal).

Step 5: Write the following command:

sudo cp -r node/{bin,include,lib,share} /usr/

You will be asked to enter your password, just do it.

A screenshot of Downloads directory (Ubuntu) opened in terminal, asking me to enter password

Step 6: Check the Node and NPM version to confirm your installation by writing the commands below:

node -v

npm -v

A screenshot of terminal, showing node and npm versions

As you can see here

Node version is v10.16.3
NPM version is 6.9.0

Every thing is OK now, you are good to go.


Posted on by:


Editor guide