Node.js Port 3000 already in use but it actually isn't?

前端 未结 30 2213
闹比i
闹比i 2020-11-28 17:24

I have been working with a node.js project for a few weeks and it has been working great. Usually, I use npm start to run my app and view it in a browser on loc

30条回答
  •  被撕碎了的回忆
    2020-11-28 17:58

    In ubuntu first grab the process by using port number: sudo lsof -i:3000 then use kill command to kill the process, for example if the process PID is 4493 the use command: kill 4493 , for mac or windows find the related command

提交回复
热议问题