Saturday, 2 March 2013

Beginners Guide : How to Install Node.js


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.



In simple words – is server-side JavaScript. Every function in Node.js is asynchronous,Node.js uses an event-based server execution procedure rather than the multithreaded execution in PHP.

Node.js provide only an environment – meaning that you have to do everything yourself. There is not a default HTTP server, or any server for that matter. This can be overwhelming for new users, but the payoff is a high performing web app. One script handles all communication with the clients. This considerably reduces the number of resources used by the application.


Installation

if you use Windows or OS X; the nodejs.org website offers installers for those operating systems, go to http://nodejs.org/ and  you can directly install.



Installing on Windows

Probably asks for cygwin packages, if not installed.

The http://nodejs.org/dist/latest/ directory contains the latest .msi package (such as node-v0.6.15.msi when Node v0.6.15 was the latest) that you may use to install both Node.js engine and npm.

Installing on Mac

The http://nodejs.org/dist/latest/ directory contains the latest .pkg package (such as node-v0.6.15.pkg when Node v0.6.15 was the latest).



Building on GNU/Linux and other UNIX

There's a number of ways to install Node.js on Linux
The filenames vary with the Node's version. The following examples are for Node v0.6.18.



Prerequisites:-

1. GNU make 3.81 or newer. Pre-installed on most systems. Sometimes called gmake.

2. python 2.6 or 2.7. The build tools distributed with Node run on python.

3. libssl-dev (Node v0.6.x only.) Can usually be installed on *NIX systems with your favorite package manager. Pre-installed on OS X.

4. libexecinfo (FreeBSD and OpenBSD only.) Required by V8. pkg_add -r libexecinfo installs it.


Do something like this

tar -zxf node-v0.6.18.tar.gz   #Download this from nodejs.org
cd node-v0.6.18
./configure
make
sudo make install


Or, if you'd like to install from the repository 

git clone https://github.com/joyent/node.git
cd node
git checkout v0.6.18     #Try checking nodejs.org for what the stable version is
./configure
make
sudo make install

You may wish to install Node in a custom folder instead of a global directory. 

./configure --prefix=/opt/node
make
sudo make install





11 comments:

  1. In our Node.JS course, we teaches how to install the Node.js in Linux. Your article fine tuned our knowledge on Node.JS installation

    Node.js Training | Node.js Training in Chennai | Javascript Training in Chennai

    ReplyDelete
    Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents. These deep learning projects ideas ideas are divided according to their complexity intensity so that you can effortlessly find a deep learning project that pursuits Deep Learning Projects Ideas 2020 you and is within your competence level.


      JavaScript Training in Chennai provides possible way to learn which will help you to enhance your UI & UX development skills. This JavaScript Training program will ehnace your JavaScript skills plus two years. JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Node JS training in chennai | Node JS training institute in chennai

    ReplyDelete
  3. Thanks for your marvelous posting! It is very useful and good. Come on. I want to introduce an get app installs, I try it and I feel it is so good to rank app to top in app store search results, have you ever heard it?

    ReplyDelete
  4. This information is meaningful and magnificent which you have shared here about the node js course. I am impressed by the details that you have shared in this post and It reveals how nicely you understand this subject. I would like to thanks for sharing this article here. Best Web Development In Node Js Course In Delhi

    ReplyDelete
  5. Our online pharmacy that provides information about diseases and their symptoms ranging from physical to psychological and what kind of medicines can cure them, based on their dosage, the type of disease it is being taken for, the kind of person taking the drug, etc. When you buy a drug from our website, we provide you with a prescription so that you can take the drug properly.

    Buy Tramadol Online
    Buy Soma Online
    Buy Xanax Online
    buy Ambien Online
    Ambien for Sale
    Buy Adderall Online
    Buy Roxicodone Online
    Buy Hydrocodone Online
    Buy Xanax Online
    Buy Green Xanax Online

    ReplyDelete
  6. thanks!
    Before you buy Adderall XR 20mg online , it is important for you to know the proper method of intake of the drug. The most prescribed method of taking a drug in capsule form and you need to swallow it as a whole. The drug you can on an empty stomach but not in the afternoon so as to avoid the occurrence of the symptoms of insomnia.

    Buy Adderall 5mg Online
    Buy Adderall XR Online

    ReplyDelete
  7. Buy Tramadol 100mg online is a produced opiate and acts in the psyche and spine to diminish how much torture you feel.

    ReplyDelete
  8. “My life was a living lightmare until I started taking Valium. I have been on 10mg a day, taken at bedtime, for twenty years. It really is a wonder drug.
    Buy Valium 10mg Online Overnight



    ReplyDelete