Port 4200 is already in use. Use '--port' to specify a different port.

【出现的问题】Port 4200 is already in use. Use '--port' to specify a different port.

 


 【解决方法】针对 Windows,通过关闭正在占用 4200 端口的 Anjular 程序,来释放 4200 端口

第一步,在 Terminal 中输入 netstat -a -n -o

 

第二步,找到端口号是 4200 的,并记住对应的 PID

 

第三步,在 Terminal 中输入,taskkill -f /pid + 对应的 pid


参考

https://stackoverflow.com/questions/39091735/port-4200-is-already-in-use-when-running-the-ng-serve-command

 

posted @ 2019-02-11 14:13  coco1989  阅读(1896)  评论(0编辑  收藏  举报