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.
-
Download the MSI installer for nodejs. Version 0.10.33 is used at the time of this document.
-
Run the installer following all default values.
-
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
-
$ sudo apt-get update
-
$ sudo apt-get install nodejs (It will install nodejs on your machine)
-
$ sudo apt-get install npm (It will install npm. Using npm we can install dependency of nodejs project.)
-
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
-
Verify the install by running ‘node -v’ in a terminal. The current nodejs version should be listed.
No comments:
Post a Comment