Home / Tutorials / What is NodeJs? How to Install ?

What is NodeJs? How to Install ?

Per nodejs.org:

“Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.”

More simply put, Node.js allows us to quickly and efficiently run JavaScript code outside the browser, making it possible to use the same language on both the frontend and the backend.

What OS do I need?

Node.js will install on most major Operating systems. MacOSX, many flavors of Linux, and Windows are supported.

Now, lets take a look at what OS you have. Please choose from the following for instructions on setting up Node.js:

I have Mac OSX

I have Linux

I have Windows

Install on OSX

Using a package:

Simply download Macintosh Installer.

Using homebrew:

Using macports:

Install on Linux

Ubuntu, Mint

Example install:

It installs current stable Node on the current stable Ubuntu. Quantal (12.10) users may need to install the software-properties-common package for the add-apt-repository command to work: sudo apt-get install software-properties-common

There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed from node to nodejs. You’ll need to symlink /usr/bin/node to /usr/bin/nodejs or you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.

Fedora

Node.js and npm are available in Fedora 18 and later. Just use your favorite graphical package manager or run this on a terminal to install both npm and node:

RHEL/CentOS/Scientific Linux 6

Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux (EPEL) testing repository. If you haven’t already done so, first enable EPEL and then run the following command to install node and npm:

Arch Linux

Node.js is available in the Community Repository.

Gentoo

Node.js is available in official gentoo portage tree. You have to unmask it.

Debian, LMDE

For Debian sid (unstable), Node.js is available in the official repo.

For Debian Wheezy (stable), Node.js is available in wheezy-backports. To install backports, add this to your sources.list (/etc/apt/sources.list):

Then run:

For Debian Squeeze (oldstable), your best bet is to compile node by yourself (as root):

openSUSE & SLE

Node.js stable repos list. Also node.js is available in openSUSE:Factory repository.

Available RPM packages for: openSUSE 11.4, 12.1, Factory and Tumbleweed; SLE 11 (with SP1 and SP2 variations).

Example install on openSUSE 12.1:

FreeBSD and OpenBSD

Node.js is available through the ports system.

Development versions are also available using ports

or packages on FreeBSD

The Node Package Manager is not installed along with Node.js by default on FreeBSD and will be needed for development and installing dependencies.

Also note that FreeBSD 10 using clang will conflict with the occasional build scrpt (which assumes gcc) using node-gyp, and can be resolved by setting an envvar.

Install on Windows

Using a package:

Simply download Windows Installer.

Using chocolatey to install Node:

or for full install with NPM:

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

failed to fetch from registry: express

failed to fetch from registry: express – I got this error while installing express framework using …

Leave a Reply

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

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH