Group Discounts available for 3+ students and Corporate Clients

Node.js Installation

Node.js is a JavaScript-based platform, is an increasingly popular, lightweight, and efficient option for developers. It allows coders to use JavaScript on both the front-end and the back-end thanks to Google’s awesome V8 engine.


-Install Xcode.

-Install git.

-Run the following commands:

git clone git://
cd node
sudo make install

Debian (Ubuntu/ Mint)

With Aptitude package manager one can install the package nodeJS then edit their bash config to redirect the command node to node js.

sudo aptget update
sudo apt
get install nodejs
sudo apt
get install npm

nano (edit / vim) the file ~/.bashrc and add the line: alias node="nodejs"

Redhat (Fedora / CentOs)

Simply install from official repos:

sudo yum install nodejs npm

If that fails, enable EPEL repo:

curl --silent --location | bash -

Then simply install from repo:

yum -y install nodejs 


In portage tree:

emerge nodejs


In official repo use pacman package manager:

pacman -S nodejs npm

Linux from source

-Install the dependencies ( Below example using debian apptitude package manager): g++ curl libssl-dev apache2-utils git-core build-essential

sudo apt-get install g++ curl libssl-dev apache2-utils git-core build-essential


-Run the following commands:

git clone git://
cd node
sudo make install

Interested in mastering Node.js Training? Enroll now for FREE demo on Node.js Training.


Currently, you must use cygwin to install node. To do so, follow these steps:

-Install cygwin.

-Use setup.exe in the cygwin folder to install the following packages:

-devel → openssl

-devel → g++-gcc

-devel → make

-python → python

-devel → git

-Open the cygwin command line with Start > Cygwin > Cygwin Bash Shell.

-Run the below commands to download and build node.

git clone git://
cd node
sudo make install

Hello Node.js!

Here’s a quick program to make sure everything is up and running correctly:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello Node.js\n');
}).listen(8124, "");
console.log('Server running at');

Run the code with the node command line utility:

> node hello_node.js
Server running at

Now, if you navigate to in your browser, you should see a nice message.

For indepth understanding click on

Node.JS Tutorials

Node.JS Interview Questions

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at, we will update the article in 24 hours.”

0 Responses on Node.js Installation"

Leave a Message

Your email address will not be published. Required fields are marked *


Please Enter Your Details and Query.
Three + 6