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