nodemon: Nodemon stuck at [nodemon] restarting due to changes...

  • nodemon -v: “^1.18.10”
  • node -v: v11.12.0
  • ‘express -v’:
  • Operating system/terminal environment: WIN10
  • Using Docker? What image: no
  • Command you ran: “nodemon ./bin/www”

Expected behaviour

express server should reload with Listening on port 3300 MongoDB connection initiated....

Actual behaviour

$ npm start

> server@0.0.0 start --hidden-location
> nodemon ./bin/www

[nodemon] 1.18.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./bin/www`
Listening on port 3300
MongoDB connection initiated....
[nodemon] restarting due to changes...
[nodemon] restarting due to changes...
[nodemon] restarting due to changes...
[nodemon] restarting due to changes...
[nodemon] restarting due to changes...
[nodemon] restarting due to changes...

and stuck there

Steps to reproduce

I am just running npm start, which leads to “nodemon ./bin/www”


my package,json { "name": "server", "version": "0.0.0", "private": true, "scripts": { "start": "nodemon ./bin/www" }, "dependencies": { "amqplib": "^0.5.2", "async": "^2.6.1", "body-parser": "~1.18.2", "connect-mongo": "^2.0.1", "cookie-parser": "~1.4.3", "cors": "^2.8.4", "debug": "~2.6.9", "ejs": "~2.5.7", "express": "~4.15.5", "express-acl": "^2.0.4", "express-react-views": "^0.10.5", "express-session": "^1.15.6", "lodash": "^4.17.11", "mongoose": "^5.3.2", "morgan": "~1.9.0", "passport": "^0.4.0", "passport-google-oauth2": "^0.1.6", "react": "^16.5.2", "react-dom": "^16.5.2", "request": "^2.83.0", "serve-favicon": "~2.4.5", "socket.io": "^2.0.4" }, "devDependencies": { "nodemon": "^1.18.10" } } Please let me know if you need any additional info.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 56 (4 by maintainers)

Commits related to this issue

Most upvoted comments

not stale.

Formatting and reinstalling windows worked for me

I still have this issue

not stale

Try adding --signal SIGKILL to your nodemon command.

@bjm904 sure, with details on how to replicate consistently.

issue is still there.

As crazy as it might sounds, I fixed it just restarting my computer (windows 10).

On Mon, May 13, 2019 at 11:41 PM Shu Pengfei notifications@github.com wrote:

when I switch node from v10.15.3 to v8.16.0 this problem disappear!

so maybe something wrong node.js API change or bug!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/remy/nodemon/issues/1544?email_source=notifications&email_token=ABLB7BF223Q7JDXZFQB6QD3PVJNIXA5CNFSM4HBMONWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKNQTI#issuecomment-492099661, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLB7BA4N2A2B73JDEOSFFDPVJNIXANCNFSM4HBMONWA .

Eu tenho esse problema Nó do Windows 10 v12.16.1 npm 6.14.4 nodemon: 2.0.4

Estou com o mesmo problema. Você conseguiu resolver?

To usando o node-dev que faz a mesma coisa O nodemon não consegui resolver

Resolvi meu problema com a dica da elzasimoes, muito obrigado Elza. Ela me recomendou utilizar o (node-dev) e funcionou.

I have this issue

Windows 10 node v12.16.1 npm 6.14.4 nodemon: 2.0.4

Guys, there is a simple very simple fix to that, please go to environment variables, select edit, and add a path for node js which can be "C:\Program Files\nodejs"

This solved my problem, this is for windows 10 not sure about oter os for similar issues

@remy Please re-open this issue

I still have this issue. I am using Windows 10. As a workaround, I too, am using forever. npx forever -w index.js

i have same problem on window 8.1 nodemon version = 1.19.0 node version = 10.15.1

E:\React\dlstockr\server>nodemon index --verbose
[nodemon] 1.19.0
[nodemon] to restart at any time, enter `rs`
[nodemon] or send SIGHUP to 5200 to restart
[nodemon] watching: *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index index.js`
[nodemon] forking
[nodemon] child pid: 5380
[nodemon] watching 3 files
example app listening on port  8080
[nodemon] files triggering change check: index.js
[nodemon] matched rule: **\*.*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] index.js

[nodemon] files triggering change check: index.js
[nodemon] matched rule: **\*.*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] index.js