Answers for "nodemon not starting"

2

nodemon command not found

npx nodemon server.js
or add in package.json config:

...
"scripts": {
    "dev": "npx nodemon server.js"
  },
...
then run:

npm run dev
Posted by: Guest on May-16-2020
0

nodemon not restarting

process.once('SIGUSR2', function () {
  gracefulShutdown(function () {
    process.kill(process.pid, 'SIGUSR2');
  });
});
Posted by: Guest on April-16-2021

Browse Popular Code Answers by Language