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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM