nodemon: nodemon 1.10.1 does not restart when source code file changes

I install the latest nodemon (1.10.1) on Ubuntu 16.04, with node v6.4.0

npm install -g nodemon

then I run

nodemon server.js

and changes server.js, the server would not restart automatically. However, when I install an earlier version, and do the same thing, the server will restart correctly.

npm install -g nodemon@1.10.0

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 30 (7 by maintainers)

Most upvoted comments

@sumiie24 , I had the same problem. My solution was adding C:\Windows\System32\ to the system variable in the PATH.

@fdoxyz

npm rm nodemon -g
npm i nodemon@1.10.0 -g

Anyone using Docker here? Or is this directly on the command line?

Hello @remy Sir, I am facing problem in nodemon, it works well when I don’t work with server. But when I work with server, nodemon does not work. It is not able to start my “js” file.

When I save my code, it only shows- [nodemon] restarting due to changes... [nodemon] restarting due to changes...

But not starting my “js” file again. Tell me where I am going wrong. Please help me out or provide me a solution for it!

Operating System- Windows 10 nodemon version- 1.18.11 express version- 4.16.4 nodejs version- 11.10.1

@vitorpiovezam I’d recommend installing the latest version (1.14.x), there’s been a lot of work since 1.10.0 so you might find a problem is fixed but also you can report new issues and they’ll be investigated too.

Thanks, this works great @seamoss .

npm rm nodemon -g && npm i nodemon@1.10.0 -g

👍

Downgraded to 1.10.0, issue goes away.

Mac OSX 10.11.5 Node.js 6.4.0 NPM 3.10.3