Salam (こんにちはという意味) :)
Windows 7 マシンで node.js スクリプトを開発しましたが、正常に動作しています。しかし、Ubuntu 12.04 で実行すると、次のエラーが表示され、アプリが停止します。
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)
エラーの原因となったポイントは.listen(80)
次の行にあります。
http.createServer(onRequest).listen(80);
^
代わりに他のポート番号(100、300、500など)も試しまし80
たが、エラーは同じでした。