Run the following command.
sudo apt-get install nodejs
This will install all the necessary packages for Node.js and now we need to install node package manager.
sudo apt-get install npm
After all above steps, You need to create a symbolic link to the Node.js folder.
At last, run the Node –v command and npm –v to see the installed Node and it’s version
Now, you can start buidling apps 🙂