How to fix Error: listen EADDRINUSE while using nodejs?

前端 未结 30 3789
执念已碎
执念已碎 2020-11-22 06:44

If I run a server with the port 80, and I try to use xmlHTTPrequest i get this error: Error: listen EADDRINUSE

Why is it problem for nodejs, if I want t

30条回答
  •  执笔经年
    2020-11-22 07:01

    On Debian i found out to run on port 80 you need to issue the command as root i.e

    sudo node app.js
    

    I hope it helps

提交回复
热议问题