Node.js

 
 
Node.js is a server-side software system designed for writing scalable Internet applications, notably web servers.
It is build on built on Chrome's JavaScript runtime. Programs are written on the server side in JavaScript, using event-driven, asynchronous I/O to minimize overhead and maximize scalability.

Node.js contains a built-in HTTP server library, making it possible to run a web server without the use of external software, such as Apache or Lighttpd, and allowing more control of how the web server works. Node.js enables web developers to create an entire web application in JavaScript, both server-side and client-side.

The latest Node.js version can be downloaded from: http://nodejs.org

Even numbered versions (0.4, 0.6, 0.8) are stable, and odd numbered versions (0.3, 0.5) are unstable. The stable releases are API-stable, which means that if you are using 0.8.1 and 0.8.2 comes out, you should be able to upgrade with no issues.

rss feed






Installing Node.js 0.10.11 on Windows



Information
none

Operating system used
Windows Vista Home Premium SP 2

Software prerequisites
none


Procedure
  1. Download and install node-v0.10.11-x86.msi

  2. Press Next button

    Node.js installation step 1

  3. Accept the terms and press Next button

    Node.js installation step 2

  4. Choose a destination folder and press Next button

    Node.js installation step 3

  5. Customize your setup and press Next button

    Node.js installation step 4



  6. Press Install button

    Node.js installation step 5

  7. Wait until Node.js is installed

    Node.js installation step 6

  8. Press Finsh button to exit the setup wizard

    Node.js installation step 7

  9. The setup wizard has automatically updated the system environment PATH
    e.g.: PATH=%PATH%;C:\Program Files\nodejs\

  10. Create the system environment NODE_PATH:
    NODE_PATH=C:\Users\<your_account>\AppData\Roaming\npm\node_modules
    e.g.: NODE_PATH=C:\Users\Robert\AppData\Roaming\npm\node_modules

    NODE_PATH is the location where the modules are globally installed.
    For example: npm install bitcoinjs-lib -g

  11. To check if Node.js is installed correctly, type: node -v
    You should see:
    v0.10.11

  12. The setup wizard also installed npm (node package manager). To verify, type: npm -v
    You should see:
    1.2.30