nodemon keeps restarting code example
Example 1: nodemon is not restarting
npm install --save-dev nodemon@latest
Example 2: nodemon not restarting
process.once('SIGUSR2', function () {
gracefulShutdown(function () {
process.kill(process.pid, 'SIGUSR2');
});
});