Steps to setup Node in Ubuntu

Steps to setup Node in Ubuntu

Node.js is a server side open source platform written in JavaScript.

It is developed by Ryan Dahl in 2009. 

Pre-requisites:

  • sudo privileges set up on your system.

Steps to install:

sudo apt-get update


 

It will update your system with latest updates available.

sudo apt-get install nodejs

The above command will install “node” on your system.

Install Node

 

 

 

sudo apt-get install npm

The above command will install “npm” on your system.

 

 

This will allow you to easily install modules and packages to use with Node.js.

Node Version:

To check the currently installed version of Node we have to use the below mentioned command:-

node -v 

npm Version:

To check the currently installed version of npm we have to use the below mentioned command:-

npm -v

Conclusion:

As you can see, by following all the above steps we are able to setup node and npm on our system successfully on your Ubuntu machine.

 

By: Keshav Kashyap 

2 thoughts on “Steps to setup Node in Ubuntu

Leave a Reply

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