Salam (means Hello) :)
I developed a node.js script on my machine with seven windows and it works fine. but when I run it on my Ubuntu 12.04, the following error appears and stops my application:
throw er; // Unhandled 'error' event ^ Error: listen EACCES at errnoException (net.js:901:11) at Server._listen2 (net.js:1020:19) at listen (net.js:1061:10) at Server.listen (net.js:1127:5) at Object.start (/httpServer/httpServer.js:9:34) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)
and the point that caused the error is .listen(80) on this line:
http.createServer(onRequest).listen(80); ^
I also tried some other port numbers (e.g. 100, 300, 500, ...) instead of 80 , and the error was the same.
source share