So I download Windows binaries from node's site and installed on my
Windows 7 machine which is installed fine, when I do:
node --version
It correctly displays its version: v0.6.7
Here is the hello world program:
// app.js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8000, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8000/');
And when I do:
node app.js
I get the response fine:
Server running at http://127.0.0.1:8000/
However, when I browser the URL http://127.0.0.1:8000, the page keeps
on running (on status bar it says waiting for 127.0.0.1...).
Can anybody help me how to make it to output Hello World ?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en