Installation of nodejs in your Debian based system

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications.

Step 1 – Add node.js PPA

Node.js package is available in LTS and current release.
Use the current release:- in your case if there is any further version available then replace the 12 with your desired version.

$ sudo apt-get install curl python-software-properties
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash 

Use LTS release:- in your case if there is any further version available then replace the 10 with your desired version.

$ sudo apt-get install curl python-software-properties
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

Step 2 – Install node.js on Ubuntu

You have successfully added the node.js PPA now execute the blow command to install the software.

$ sudo apt install nodejs

Step 3 – Checking your version

Now execute below two commands to check node.js and npm version. In my case I am using the LTS version.

$ node -v
v10.16.0
$ npm -v
6.9.0

Thank you 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s