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:
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:
That's it! Node.js and NPM should now be installed on Ubuntu 16.04.