How to Install Node.js

Node.js is a server-side implementation of JavaScript built on top of Google V8 JavaScript runtime engine. Node's asynchronous, event-driven I/O model makes it easy for developers with JavaScript knowledge to build high-performing, scalable, and highly concurrent web applications. Node.js replacing the multithreaded approach with single-threaded, event-driven I/O. Ability to handle thousands of concurrent connections with minimal overhead on a single process.
Install nodejs in windows.
  1. Download the MSI installer for nodejs. Version 0.10.33 is used at the time of this document.
  2. Run the installer following all default values.
  3. Verify the install by running ‘node -v’ in a terminal. The current nodejs version should be listed.
Install nodejs in Ubuntu.
Open the terminal and run the following command
  1. $ sudo apt-get update
  2. $ sudo apt-get install nodejs (It will install nodejs on your machine)
  3. $ sudo apt-get install npm (It will install npm. Using npm we can install dependency of nodejs project.)
  4. $ sudo ln -s /usr/bin/nodejs /usr/bin/node
  5. Verify the install by running ‘node -v’ in a terminal. The current nodejs version should be listed.