stop all instances of node.js server

前端 未结 16 1777
我在风中等你
我在风中等你 2020-11-28 17:23

This is my first time working with Node.js and I ran into this problem:

I have started a Node server through the plugin of an IDE. Unfortunately, I cannot use the ID

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 18:05

    Use the following command to kill and restart node server from batch file

        @echo off
    cd "D:\sam\Projects\Node"
    taskkill /IM node.exe -F
    start /min cmd /C "node index.js"
    goto :EOF
    

提交回复
热议问题