Nodemon restarts but doesn't apply changes
See original GitHub issue- Versions:
nodemon -v: 2.0.15- Operating system/terminal environment (powershell, gitshell, etc): Windows 10 (Ubuntu SBS 18.04.2 LTS (Bionic Beaver))
- Command you ran: nodemon --exec babel-node – index.js
Expected behaviour
App to restart with updated changes
Actual behaviour
App restarts but does not apply any of the updated changes.
Steps to reproduce
Install nodemon 2.0.15, spin up a simple node.js app with express
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
NodeJS - nodemon not restarting my server - Stack Overflow
After some research, this issue was due to my root directory name : My root directory was named "mysite.git" thus nodemon was watching...
Read more >How to make your Node.js app restart automatically when you ...
This guide would show you how you can make your Node.js application reload automatically whenever you make changes to your code during ...
Read more >Automatically restart Node.js apps with Nodemon
The essential tutorial for Nodemon, a utility for Node.js applications that monitors for changes and automatically restarts the server.
Read more >nodemon events — run tasks at server start, restart, crash, exit
nodemon wraps your node application and watches for any files that have changed. This is super-useful because you don't need to restart your...
Read more >Automatically Restart Node Apps on File Change with nodemon
In this short tutorial, learn how to restart Node/JavaScript applications automatically when you change a source file with Nodemon.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve managed to replicate this issue on Windows 10, using this repository https://github.com/cybrown/nodemon-bug-http, nodejs version 16.14.0, npm version 8.3.1 and gitbash. It works in cmd and powershell though. It works in gitbash when the web server is not listening.
Automatically closing this issue due to lack of activity