Node.js
The installation of Node is very simple.You can download and execute a nice installer by going to http://nodejs.org/ and clicking on Install. This will detect your OS and decide automatically which installer to download. If you want to decide yourself, go to http://nodejs.org/download/.
If you prefer to install Node using a package manager, especially if you are using LINUX, go to https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager and follow the instructions for your OS.
Another option is to install Node Version Manager (NVM). NVM is a utility that allows you to have several different versions of Node on your machine, switch from one version to another easily, and install new versions. To install NVM, just go to https://github.com/creationix/nvm and follow the instructions. Once you have NVM successfully installed, you just need to issue the following command line:
$ nvm install stable $ nvm alias default stable $ nvm use default
It is recommended that you do not install a version of Node whose minor version number is not even. These versions are not stable and are experimental. The keyword “stable” above makes sure you will always get the latest stable release but you can replace that with specific version numbers if you want.
Also, NVM is not the only version manager for Node. You can try others such as Nodebrew (https://github.com/hokaccha/nodebrew).
With the installation of Node, the Node Package Manager (NPM) is also installed. NPM is the utility that you’ll likely use for most of your normal development cycle. NPM allows you to install libraries, manage the dependencies of your projects, and define a set of commands to build your code.
To check that everything is working:
$ nvm --version $ npm --version $ node --version