question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nodemon not restarting: [nodemon] restarting due to changes.

See original GitHub issue

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.9
  • node -v:v16.0.0
  • Operating system/terminal environment: windows 10 vs code terminal
  • Using Docker? What image:
  • Command you ran: nodemon index.js

Expected 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:49 (10 by maintainers)

github_iconTop GitHub Comments

9reactions
vayupukcommented, Jul 20, 2021

I have same problem. node v 14.17.3 nodemon v 2.0.12

And I fixed that by installed nodemon @2.0.7

then It work.

5reactions
iagovholandacommented, Oct 12, 2021

I managed to solve it just by changing the nodemon version to 2.0.7

npm i nodemon@2.0.7

problem soved ✔

Read more comments on GitHub >

github_iconTop Results From Across the Web

NodeJS - nodemon not restarting my server
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 >
Top 10 Mistakes Node.js Developers Make
1 Not using development tools ... Unlike other languages such as PHP or Ruby, Node requires a restart when you make changes to...
Read more >
nodemon waiting for changes before restart
1. Go to the task manager 2. Then look for Node.js: Server-side JavaScript 3. Then right click on it and End task from...
Read more >
Automatically restart Node.js apps with Nodemon
In Node.js, Nodemon can be likened to a magic wand because of its ability to automatically restart a web application upon file changes....
Read more >
[nodemon] restarting due to changes-node.js
In my case, after adding the system path in the environment "C:\Windows\system32;", it still appeared. But I recognized it seems in some first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found