📅  最后修改于: 2022-03-11 15:02:39.799000             🧑  作者: Mango
You can install nodemon
npm install -g nodemon
Then in your package.json add a script like so:
"scripts": {
"startWatchInspect": "nodemon --inspect --trace-warnings server.js"
}