How to programatically restart Node.js app without external dependencies?

前端 未结 0 889
离开以前
离开以前 2021-01-31 19:56

I want to make the app re-run the command \'node index\' after a timeout.

What I tried so far:

setTimeout(function () {
    process.on("exit", fu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题