“Port 4200 is already in use” when running the ng serve command

后端 未结 30 1404
深忆病人
深忆病人 2020-12-02 03:47

I am learning angular 2 and for the first time I am using the angular CLI project to create a sandbox project.

I was able to run the command \"ng serve\" and it wor

30条回答
  •  一整个雨季
    2020-12-02 04:24

    In my case none of the above mentioned worked.

    UBUNTU 18.04 VERSION

    Below command worked.

    sudo kill -9 $(lsof -i tcp:4200 -t)
    

提交回复
热议问题