Installing Nodejs
To install Node js on Ubuntu 16.04, please open your terminal and run the following commands:-
sudo apt-get update sudo apt-get install nodejs sudo apt-get install npm curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh sudo bash nodesource_setup.sh sudo apt-get install nodejs sudo apt-get install build-essential Also, Read Best Node JS Interview Questions
Checking the installed version of Node js
node -v