How to stop app that node.js express 'npm start'

后端 未结 16 2024
名媛妹妹
名媛妹妹 2020-12-07 11:00

You build node.js app with express v4.x then start your app by npm start. My question is how to stop the app? Is there npm stop?

16条回答
  •  一生所求
    2020-12-07 11:34

    If you've already tried ctrl + c and it still doesn't work, you might want to try this. This has worked for me.

    1. Run command-line as an Administrator. Then run the command below to find the processID (PID) you want to kill. Type your port number in

      netstat -ano | findstr :

    1. Then you execute this command after you have identified the PID.

      taskkill /PID /F

    Kudos to @mit $ingh from http://www.callstack.in/tech/blog/windows-kill-process-by-port-number-157

提交回复
热议问题