-
-
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 not restarting: [nodemon] restarting due to changes. #1882
Comments
Same problem.
The latest version where it works correctly is 2.0.7 |
On v2.0.10 is where it's broken iirc. v2.0.11 is working fine for me (MacOS) |
Can you all (3 ppl) provide screenshots of the screens showing what you're seeing |
Currently not at my Windows pc. The error occurs over there, but not on my Mac. |
Those of you on node 15 and 16, can you test with node 14 (or 12) just to rule node versions out of the equation? |
I have same problem. And I fixed that by installed nodemon @2.0.7 then It work. |
Just to rule it out - can we try with |
Fixed the issue for me. |
I had the same problem. Downgrading -g nodemon to 2.0.7 fixed it. |
I can verify that it is broken above 2.0.7 |
I had the same problem, down graded to nodemon 2.0.7 and it works beautifully again when I save . . . restarts and works as expected upgrade back to @latest nodemon . . . restart never occurs . . there's a message saying that it's restarting due to changes . . . it just never does. |
The same problem with me at Windows 10: The app restarts eventually when I edit&save the code. Already with the |
Same problem here on Windows 10 + VSCode.
Reverting to version nodemon v2.0.7 works around the problem for me, too. But still, an actual fix would solve my problem in our team, since I cannot commit version downgrade to our codebase. |
2.0.7 works. Maybe some others run into this too: It looks like 2.0.12 sometimes ignores some code changes. But I am not 100% sure it because of nodemon, guess nodemon doesn't use caching or so? But my SSD works fine. Windows 10 + VSCode. |
If anyone is still watching this issue - let's try to hit reset. The first thing I need is for anyone that can replicate this, or is still experiencing this issue to pipe up. Then, if it still affects you, I need the following (sorry to be harsh, but all other "also affects me" will be either ignored or deleted - need to focus on where the issue is):
If you're using VS Code, I'm going to request that you replicate outside of VS Code as I'm starting to wonder if there might be something going on here because as yet I can't replicate (and I tend to cut VS Code out of the replication process since I can never be sure exactly which shell it's running). |
Can also be reproduced with git-bash and git-cmd. |
The command
And the important point on my side is, the problem only happens if I run it in VSCode integrated terminal (PowerShell) and in DEBUG mode. When not in debug mode, with the PowerShell in VSCode, nodemon restarts just fine, also outside VSCode. I don't know how to run debug mode outside VSCode. So I could not check that. Also, I don't know how to change with terminal VSCode uses for debug mode. But I tried it with WebStorm, too. There I can set which terminal is used for debug mode. And, in Debug mode, PowerShell terminal made the same problem, whereas other terminals (cmd, wsl) worked just fine in debug mode. So on my side, the problem looks somehow related to debug+powershell, instead of VSCode directly. |
directly in Windows Terminal and not in VS Code, also no debug mode. No idea if you use Windows. https://github.com/microsoft/terminal |
I have a different results than with running nodemon.
On Using VS code It shows restarting on file edit but never restarts (cmd and powershell) . I tried installing nodemon v2.0.7 and it works find inside and outside vs code |
@remy I tried everything that was mentioned in this issue and I'm still getting the restarting due to changes error. I even tried the debug build aka Hoping to hear from you. |
@AbhishekNarula28 what terminal shell are you using? |
Powershell |
Version? You need to be specific since I can't replicate.
…On Mon, 27 Sep 2021, 09:57 AbhishekNarula28, ***@***.***> wrote:
@AbhishekNarula28 <https://github.com/AbhishekNarula28> what terminal
shell are you using?
Powershell
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1882 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADLBAJ76LYNDL336DF2FLUEAWXFANCNFSM4755RXSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
5.1.19041.1237 |
Worked for me (Node v14.17.6) npm un nodemon Terminate process and try again. |
I fixed it on 2.0.13. |
I just tried 2.0.13 and it's still doing it. Fine with 2.0.7 |
I managed to solve it just by changing the nodemon version to 2.0.7 npm i nodemon@2.0.7 problem soved ✔ |
Can people following this thread test with |
I just tried and it works!. |
I confirm here again that the issue has been solved for my case with |
Still not restarting for me. Windows 10.0.19042 I tried going back to 2.0.7 and 1.19.4 Error: listen EADDRINUSE: address already in use I tried killing all ports in use and the problem just starts again when starting the nodemon script. |
use the last version |
I started with 2.0.14(latest version) which is what was not working in the first place. My last try was the 2.0.14-alpha.1 version. Nothing is working🤷♂️ |
Not working for me. |
Nodemon not restarting: [nodemon] restarting due to changes... i use vs code if change my code but not update my code browser and show restarting use due to change
nodemon -v
:2.0.9node -v
:v16.0.0Expected behaviour
const http = require("http"); const PORT = 3000; const hostName = "127.0.0.1"; const server = http.createServer((req,res) => { res.end("Welco my server server test test"); }) server.listen(PORT,hostName, () => { console.log(
server is running at http://${hostName}:${PORT}) })
Actual behaviour
Steps to reproduce
[nodemon] 2.0.9
[nodemon] to restart at any time, enter
rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting
node index.js
server is running at http://127.0.0.1:3000
[nodemon] restarting due to changes...
[nodemon] restarting due to changes...
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: