What is Node.js?
Install node js on ubuntu, Installation from Ubuntu official repositories
The fastest way to set up node.js is to use the official ubuntu repositories. First connect to your server using ssh. After connecting to your ubuntu Server with SSH, run the following command.
sudo apt update
After running this command, the repositories will be synchronized..
Run the following command
sudo apt install nodejs
Enter your password and the installation will begin. Once the installation is complete, if you wish you can also install the Node.js package manager NPM
To install NPM enter the following command
sudo apt install npm
Finally, check the installed version by entering the following command
this method is the easiest way to install noode.js an ubuntu machine