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

前端 未结 30 2228
闹比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 18:06

    Maybe you can take this as reference. This single command line can kill the process running on given port.

    npx kill-port 3000
    


    To kill multiple ports.

    npx kill-port 3000 8080 4200
    

提交回复
热议问题