We will be using the distribution source from the Offical Source
If you are using Ubuntu, then just run this command in your terminal
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
It will ask fro your password, provide your password and then press Enter.
After some time it will install nodejs in your system.
To check that nodejs is installed in your system, paste below command into your terminal.
node -v
If it will give you some number, then your nodejs installation is complete.

Top comments (0)