nko2 / website

the node.js knockout website
http://2011.nodeknockout.com
MIT License
59 stars 16 forks source link

node.js problem #191

Closed hamd closed 13 years ago

hamd commented 13 years ago

Hello, I hope I have not selected the wrong place to raise this. I installed node.js and compiled it is working as I do: node

2+2 4 ok node function add(a,b){return (a+b)} add(20,20) 40 ok

However, execute a node file.js it is not working where file.js has this code: var http = require('http');

var s = http.createServer(function(req, res){ res.writeHead(200, { 'content-type': 'text/plain'}); res.end("hello world \n"); }); s.listen(8000);

Thanks for your help

visnup commented 13 years ago

yeah, this is probably the wrong place. I'd try the google group for node.js or the #node.js irc channel.

though, off the top of my head, content type might have I be 'Content-Type'.

On Sep 20, 2011, at 8:41 AM, hamdreply@reply.github.com wrote:

Hello, I hope I have not selected the wrong place to raise this. I installed node.js and compiled it is working as I do: node

2+2 4 ok node function add(a,b){return (a+b)} add(20,20) 40 ok

However, execute a node file.js it is not working where file.js has this code: var http = require('http');

var s = http.createServer(function(req, res){ res.writeHead(200, { 'content-type': 'text/plain'}); res.end("hello world \n"); }); s.listen(8000);

Thanks for your help

Reply to this email directly or view it on GitHub: https://github.com/nko2/website/issues/191

gerad commented 13 years ago

Yep,

You've definitely selected the wrong place to raise this. Try the google group: http://groups.google.com/group/nodejs

Good luck, Gerad

On Sep 20, 2011, at 8:41 AM, hamd wrote:

Hello, I hope I have not selected the wrong place to raise this. I installed node.js and compiled it is working as I do: node

2+2 4 ok node function add(a,b){return (a+b)} add(20,20) 40 ok

However, execute a node file.js it is not working where file.js has this code: var http = require('http');

var s = http.createServer(function(req, res){ res.writeHead(200, { 'content-type': 'text/plain'}); res.end("hello world \n"); }); s.listen(8000);

Thanks for your help

Reply to this email directly or view it on GitHub: https://github.com/nko2/website/issues/191