-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodemon does not restart server, stuck on ---> [nodemon] restarting due to changes... #1956
Comments
Can you also run with Also, are you running in the bare terminal or via an IDE like VS Code (sorry, all these things add to complexity it turns out). |
Sorry, that wasn't very clear. What I need to see with verbose is when it's restarting as it should show what files are triggering the restart. |
Is this what you are looking for?
|
Yes, but with the restart loop happening ... I'm assuming it's still a problem? |
Yes, it is still stuck. The terminal code I pasted is after saving the server.js file. The console output does not show up/server restart does not happen. Thanks for the help! |
I'm seeing this behavior as well. I wonder if it's a Node version thing. Windows 10
[nodemon] 2.0.15 I should note that the, "rs" thing doesn't seem to be working either. |
I am also experiencing this behavior and Windows 10, Node 16.13.1
|
Is this issue similar/the same as #1971 ? Are you guys using Git Bash as a terminal under VSCode? That might seem to be the common issue... it's a Unix shell emulated on Windows.... so not native functionality AFAIK. Try switching the terminal to CMD or PowerShell in VSCode, if you're on Windows. |
I tried PowerShell and CMD. Does the same thing... |
I added the variables below to Path in system variables and it fixed the problem for me
|
Thanks @zorridge . I was facing the same issue and it actually resolved the problem. |
Hi, @lorand-horvath it appears that the problem is not related to a specific shell, but is related to the folders mentioned by @zorridge not being in the I encountered this same issue while setting the Therefore, if you are using a custom shell/setting the Thanks. |
Adding that path doesn't solve my problem ... |
I also have this problem. My Path vars seem ok, as suggested above. app.js:
package.json:
I also tried my app with pm2 latest. And it crashes upon killing the process: 09:29:35 PM2 | pid=4536 msg=failed to kill - retrying in 100ms Then I tried again nodemon and when it hanged I killed the node child process manually with: and then it restarted monitoring successfully. Versions: Visual Studio Code: Electron: 13.5.2 I'll appreciate any suggestions on how to make it work. Thanks! |
+1 |
I had this same issue. I found a workaround here #573. I changed the signal used and it works now: |
Hey, Can you provide the full path of server.js?? Thanks |
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. |
Automatically closing this issue due to lack of activity |
Thank you very much. This really helped! |
nodemon -v
:2.0.15npm start
Expected behaviour
Expected behavior is nodemon restarting the server after saving changes in the js/json files.
server.js file
package.json
Actual behaviour
Steps to reproduce
Start the server with
npm start
command.save either the package.json file or server.js file
nodemon does not restart the server.
If applicable, please append the
--dump
flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.The text was updated successfully, but these errors were encountered: