How to upgrade to latest node in ubuntu 17.04 using terminal

In this article let’s discuss about How to upgrade to latest node in ubuntu 17.04 using terminal. Let’s go through the following methods without any delay.

Method 1:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_13.x | bash -
apt-get install -y nodejs

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

Method 2 :

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Hope the above solution works.

Realted Posts : How to install github linux