nodemon: Windows 10 hanging when restart

  • nodemon -v: 1.14.11
  • node -v: 9.8.0
  • Operating system/terminal environment: Windows 10 cmd
  • Command you ran: nodemon

Expected behaviour

Start the node app from package.json’s main field

Actual behaviour

App started ok but nodemon is unable to restart it. It shows no error msgs, just hangs there.

Steps to reproduce

npm init on a folder Create index.js with the code from this page: https://blog.risingstack.com/your-first-node-js-http-server/


I use nodemon for some 2 or 3 years now in all my projects. It’s been a little while since it stopped working for me. I tried many things, read many articles, posts and issues and nothing worked. From any of my websites and apps to the simple code above, all show the same behavior. Below is the output from the code above when started with nodemon:

H:\tests\nodemontest>nodemon
[nodemon] 1.14.11
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
server is listening on 3000
[nodemon] restarting due to changes...

The last line appears when a change is made to a file (in this case index.js). But the change is not reflected in the browser when it is refreshed. Also, when I close the terminal window nodemon appears to restart the app just before the close takes place. I tried all this with the latest nodemon, then downgraded to 1.17.11 and then further to at 1.14.11 and they all do the same.

Any advice?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

I’m still having the issue sill Richard.