How to fix Error: listen EADDRINUSE while using nodejs?

前端 未结 30 3727
执念已碎
执念已碎 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:06

    I have the same problem too,and I simply close the terminal and open a new terminal and run

    node server.js
    

    again. that works for me, some time just need to wait for a few second till it work again.

    But this works only on a developer machine instead of a server console..

提交回复
热议问题