How to install NodeJS on Ubuntu 20.04


NodeJS Upgrade from 10 to any version

Node JS



Version 10 is default version in Ubuntu 20.04 machine. Need to install updated version, kindly follow blow steps to install

Step:1

sudo apt install build-essential apt-transport-https lsb-release ca-certificates curl

Step:2

sudo apt update

Step:3

Use Based on the upgrade version requirement:

For Version 14
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

For Version 13
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

For Version 12
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

 For Version 11
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -

 

Non LTS:

For Version 11
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
 
For Version 11
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -

Step:4

sudo apt install nodejs

Step:5  Verify the Install:

node -v

No comments:

Powered by Blogger.