sudo kill $(sudo lsof -t -i:4200) Or sudo kill `sudo lsof -t -i:4200` Or sudo lsof -t -i tcp:4200 | xargs kill -9 Fix Port 4200 is already in use.Use ‘-port’ to specify a different port error in Window To fix port 4200 is already in use error in In Mac & Linux OS (Ubuntu etc) use the following commands.