Installing without building
You may obtain pre-compiled Node.js binaries for several platforms from http://nodejs.org/download.
Installing on Windows
Manual install
The http://nodejs.org/dist/latest/node.exe file is a standalone Windows executable that contains only the last version of Node.js engine.
The http://nodejs.org/dist/npm/ directory contains the latest
.zip archive of npm (such as npm-1.1.16.zip when npm v1.1.16 was the latest).
Put
node.exe to a clean directory, add that directory to your PATH variable, unpack npm to the same directory, and then you'll be able to run scripts (node scriptname.js) and install modules (npm install modulename) anywhere you want.Manual update
To update Node, download the latest http://nodejs.org/dist/latest/node.exe file and replace your old
node.exe with it.
To update npm, run the
npm update npm -g command.Automatic install (with Microsoft Installer)
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.console.log('Hello World');
ello World
ndefined
exit
eferenceError: exit is not defined
at repl:1:2
at REPLServer.self.eval (repl.js:109:21)
at Interface.
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)
at ReadStream.EventEmitter.emit (events.js:126:20)
at emitKey (readline.js:1058:12)
quit
eferenceError: quit is not defined
at repl:1:2
at REPLServer.self.eval (repl.js:109:21)
at Interface.
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)
at ReadStream.EventEmitter.emit (events.js:126:20)
at emitKey (readline.js:1058:12)
help
eferenceError: help is not defined
at repl:1:2
at REPLServer.self.eval (repl.js:109:21)
at Interface.
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)
at ReadStream.EventEmitter.emit (events.js:126:20)
at emitKey (readline.js:1058:12)