How to Install Node.js 14 on ubuntu 20.04

  • by

Step 1-: Update System.

sudo apt update
sudo apt -y upgrade

Step 2-: Uninstall Previous Node.js

sudo apt-get remove nodejs

sudo apt-get remove npm

Step 3-: Add Node.js 14 APT repository

sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL | sudo -E bash -

Step 4-: Install Node.js 12 on Ubuntu 20.04

sudo apt -y install nodejs

Step 5-: Verify Node version

$ node --version

Leave a Reply

Your email address will not be published. Required fields are marked *