How to fix Error: listen EADDRINUSE while using nodejs?

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

    Seems there is another Node ng serve process running. Check it by typing this in your console (Linux/Mac):

    ps aux|grep node
    

    and quit it with:

    kill -9 
    

    OR alternativley use

    ng serve --port 
    

    to serve your project on a free port of you choice.

提交回复
热议问题