본문 바로가기

Development/Javascript

[Node.js] 에러 events.js:85

Error:

Server running at http://127.0.0.1:80/

events.js:85

      throw er; // Unhandled 'error' event

            ^

Error: listen EACCES

    at exports._errnoException (util.js:746:11)

    at Server._listen2 (net.js:1112:19)

    at listen (net.js:1155:10)

    at net.js:1253:9

    at dns.js:85:18

    at process._tickCallback (node.js:355:11)

    at Function.Module.runMain (module.js:503:11)

    at startup (node.js:129:16)

    at node.js:814:3


Solution:

Node를 실행할 때 sudo를 앞에 붙여서 root 권한으로 실행하면 된다.

예) sudo node HelloWorld.js