How to install node.js in ubuntu and windows

node.js  is a server side platform built on Google Chrome’s JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009.

The <a href=””>Node.js</a> is an
open source,cross-platform runtime environment for 
developing server side and networking applications quickly.
Node.js also provides JavaScript modules.
By leveraging Javascript on both the front-end
 and the back-end, development can be more 
consistent and be designed within the same system.

node.js is  an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.

It  is similar in design to, and influenced by, systems like Ruby’s Event Machine or Python’s Twisted. it presents an event loop as a runtime construct instead of as a library.In Node there is no start-the-event-loop call. Node directly enters into the event loop after executing the input program. Node exits the event loop when there are no more callbacks to execute. This is like JavaScript as the event loop is hidden from the user.

in node multiple connections can be handled concurrently. On each and every connection the callback is fired. if there is no task to be done Node is sleeping.


HTTP is a first class citizen in Node.js, designed with streaming and low latency which makes the node well suited for the foundation of a web library or framework.
The installation process involve the following steps

Step 1:

sudo apt-get update
Step 2:

sudo apt-get install git

Step 3:

sudo apt-get install nodejs

Step 4:

sudo apt-get install npm

Step 5:


To test node installed : type node.

A simple example:

Enter into the directory where node installed open the text editor like notepad type Console.log(“hello world”); save the file with name app.js

now type ctrl+alt+t for linux and enter into the directory where node installed and type node or nodejs<space> app.js

output will be hello world

Leave comment

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