How to install node.js in ubuntu and windows
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
sudo apt-get update
sudo apt-get install git
sudo apt-get install nodejs
sudo apt-get install npm
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