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

后端 未结 16 2019
名媛妹妹
名媛妹妹 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:26

    All (3) solotion is :

    1- ctlr + C

    2- in json file wreite a script that stop

    "scripts": { "stop": "killall -SIGINT this-name-can-be-as-long-as-it-needs-to-be" },

    *than in command write // npm stop //

    3- Restart the pc

提交回复
热议问题