How to install nodejs in ubuntu

In this article let’s discuss about How to install nodejs in ubuntu. Let’s go through the following methods without any delay.

Method 1:

sudo apt-get install curl
curl -sL | sudo -E bash -
sudo apt-get install nodejs
# Check node version
node -v 
# v13.9.0
# Also, check the npm version
npm -v 
# 6.13.7

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

sudo apt update
sudo apt install nodejs
sudo apt install npm

Hope the above solution works.

Realted Posts : React/rctbridge.h’ file not found