How-To Install Node.js on Ubuntu 16.04

In this tutorial, I'm going to show you how-to install Node.js on Ubuntu 16.04. Firstly, we will update the package index:

How-To Install Node.js on Ubuntu 16.04
Photo by Gabriel Heinzer / Unsplash

In this tutorial, I'm going to show you how-to install Node.js on Ubuntu 16.04.

Firstly, we will update the package index:

sudo apt-get update

Next, we will install Node.js using the package manager:

sudo apt-get install nodejs

You may now verify if Node.js has been installed correctly by checking the version number:

nodejs -v

We will not install node package manager (npm), which is used to manage Node.js packages:

sudo apt-get install npm

Just like how we checked to verify if Node.js has been installed, we will check if NPM has been installed correctly by checking the version number:

npm -v

That's it! Node.js and NPM should now be installed on Ubuntu 16.04.