Closed cawoodm closed 1 year ago
I'd also add that supervisor
does work.
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. Thank you for contributing <3
Automatically closing this issue due to lack of activity
The issue still persists.
Yup issue persists:
I was also able to reproduce it. On Win 11 it does not work, but on WSL2 Ubuntu it works. Its 100% Windows specific issue.
This issue still occurs in windows 1
nodemon -v
: 2.0.20Expected behaviour
Nodemon should terminate the nodejs process and restart it on windows 10.
Actual behaviour
Nodemon does not terminate the nodejs process, though it can restart it if I terminate it. It also logs no errors about not being able to terminate the process!
Steps to reproduce
It seems to be an issue on many but not all customer installations and may not be reproducable!
Detailed information
Similar to the long list of users in #1501 and other tickets nodemon just doesn't work - it is not sending signals to the node process.
We can confirm this by adding the following to our code and running
nodemon --signal SIGHUP
:This line is never logged and we can see from ProcMon that no signals are sent to the process. Nodemon says:
But you can wait an hour and nothing happens.
Using the task manage, powershell, cports or any other task manager it is simple to kill the node process and nodemon will restart it.
The issue is that nodemon is not terminating the process. Whatever method it uses no longer works in Windows 10 - though it used to.
The ONLY fix, is to re-install the operating system.
What does not work:
Basically there seems to be a better way of killing processes in Windows (used by all other tools) and nodemon is not using it.
Dump
node: v16.18.1 nodemon: 2.0.20 command: C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\nodemon\bin\nodemon.js --dump cwd: C:\projects\order OS: win32 x64