Node Js uses an event-driven non-blocking input and output model, which in turn makes it very lightweight, efficient and ideal for real-time applications that handle a lot of data, let’s install it !.
INSTALLING NODE JS
We open our terminal or console and write the following:
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
Then we go to the path where we want to clone Node Js, in my case the route is as follows:
CLONE NODE JS
git clone https://github.com/nodejs/node.git node && cd node
If we want to install the latest version, we skip the next step and go directly to the step: create the makefile.
But if we want to install another specific version of node Js, we point to for example version 0.12.0 as follows:
git checkout v0.12.0
After this we continue with the normal installation process and proceed to create the makefile.
CREATE THE MAKEFILE
WE PREPARE THE INSTALLATION
sudo make install
We check which version of Node Js we have installed
Verify which version of NPM we have installed
IF WE WANT TO INSTALL SOME MODULES OF NODE JS
JADE – HTML TEMPLATE AND PREPROCESSOR ENGINE
npm install -g jade
STYLUS – CSS PREPROCESSOR
npm install -g stylus
npm install -g coffee-script
And, with these simple steps we have already installed Node Js and some of its most famous modules in our team, Node Js has many interesting and very useful modules, if you wish you can check them more in detail on the official website of NPM.
Dont miss any updates