-
-
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 restarts multiple times #1354
Comments
Uninstalling/reinstalling nodemon doesn't help. |
Isn't fsevents module an optional dependency, only installed on OS X to access the FSEvents API? I am not sure if it's relevant here. |
In this case, I don't have a clue what could be a reason. |
Still digging this issue and therefore can't develop the project. |
I also have same problem, as a workaround i run node first, then cancel it and then run nodemon and that stops the restart loop for a while, after a while (sort of random) nodemoon loops again. I checked with my coworkers, the ones that have the lastest Windows 10 update are the ones with this problem. |
oh so this is an issue with windows ? |
I don't know what exactly is going on, has Windows April Update introduced a bug or fixed it and nodemon needs to be patched? As a workaround you can disable access time modifications completely with |
@Dattaya, Thank you very much! |
I have the same problem, I use Windows 10 and a week ago it was updated. Well, I'm glad to know the origin, I was already going crazy. |
Same problem here. I'm on windows too, probably i also just updated the SO but i'm not sure. anyway seems that just accessing the files trigger a restart! |
#1354 (comment) solves it! |
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. |
In Windows it continues to affect. |
@tojacob even after running |
@AbdelrahmanHafez: After executing the command everything worked normally. |
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. |
Just adding a dummy comment to stop this issue from being closed! |
Since no one has offered anything by way of pull request, I'm going to add this to the FAQ (as far as I can tell it's Windows triggering an IO event that it shouldn't be). Something you can also try is a completely fresh installation of nodemon (to pick up the latest version of chokidar - which does the actual watching) - though I doubt if that'll fix anything… |
Small fix for |
The same happened to me on MacOS node 10, npm 6, nodemon 1.10. Upgrading nodemon to 1.18 bringing the latest chokidar fixed the issue. Thanks to @markablov for his patch. |
|
Still happening and even |
Still happening here aswell... "fsutil behavior set disablelastaccess 1" doesent work for me neither |
Please suggest some on this. Still this is happening for me. |
@deveshsinghal22 here you go: upgrade. This issue was filed 9 months ago. Suggest upgrading nodemon. If you're seeing a new issue, please file a new issue. |
Still happening and even OS window 8.1 |
executing following command as administrator: |
|
executing Windows 7 Pro 64X |
for others searching, per remy's comment updating seems to resolve this issue for me. windows 10. node v16.13.0. nodemon 2.0.15. |
nodemon -v
: 1.17.5node -v
: 8.11.2Windows 10 Pro N, Build 17134
nodemon --verbose ./node_stock/bin/www
Expected behaviour
Start a server and listen to the file changes
Actual behaviour
Keeps restarting without any changes.
Steps to reproduce
Works normally in -L (legacy mode).
If applicable, please append the
--dump
flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.[nodemon] 1.17.5
[nodemon] reading config .\nodemon.json
[nodemon] to restart at any time, enter
rs
[nodemon] or send SIGHUP to 12128 to restart
[nodemon] ignoring: .git node_stock/client//* node_stock/node_modules//* npm-debug.log node_stock/node_modules/../node_modules node_stock/.test.js node_stock/fixtures/**/
[nodemon] watching: D:\Projects\luckstock\node_stock//*
[nodemon] watching extensions: js,json
[nodemon] starting
node ./node_stock/bin/www
[nodemon] forking
[nodemon] child pid: 6164
[nodemon] watching 763 files
[nodemon] files triggering change check: node_stock\apps\items\itemsStore.js
[nodemon] matched rule: D:\Projects\luckstock\node_stock//*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] Node_stock\apps\items\itemsStore.js
[nodemon] files triggering change check: node_stock\apps\orders\index.js
[nodemon] matched rule: D:\Projects\luckstock\node_stock/**/*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] Node_stock\apps\orders\index.js
....
The text was updated successfully, but these errors were encountered: