Grunt Server:Fatal error: Port 35729 is already in use by another process.

提示35729端口被占用,使用lsof命令进行查看:

y@y:yo-test$ lsof -i :35729
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
chrome  22141    y  213u  IPv4 230517      0t0  TCP localhost:48009->localhost:35729 (ESTABLISHED)
ionic   23071    y   13u  IPv6 196288      0t0  TCP *:35729 (LISTEN)
ionic   23071    y   14u  IPv6 230518      0t0  TCP localhost:35729->localhost:48009 (ESTABLISHED)

35729被ionic测试项目占用,把ionic项目停止后就可以了。

y@y:myapp1$ ionic serve
Running dev server: http://192.168.0.165:8100
Running live reload server: http://192.168.0.165:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Ionic server commands, enter:
  restart or r to restart the client app from the root
  goto or g and a url to have the app navigate to the given url
  consolelogs or c to enable/disable console log output
  serverlogs or s to enable/disable server log output
  quit or q to shutdown the server and exit

ionic $ q
y@y:myapp1$ 
原文地址:https://www.cnblogs.com/yshyee/p/4505407.html