Search code examples
node.jshttpamazon-ec2vue.jsyarnpkg

Amazon EC2 Error: listen EACCES 0.0.0.0:80


I have already added the HTTP TCP Port 80 to the inbound rules, but I still get the error:

Error: listen EACCES 0.0.0.0:80
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at Server.setupListenHandle [as _listen2] (net.js:1338:19)
    at listenInCluster (net.js:1396:12)
    at doListen (net.js:1505:7)
    at _combinedTickCallback (internal/process/next_tick.js:141:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:695:11)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3

Solution

  • You probably have to run your node.js script with sudo as you want to listen on port 80.