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.

Server not starting after changes

See original GitHub issue
  • nodemon -v: 2.0.6
  • node -v: v14.15.3
  • Operating system/terminal environment: Windows 10/
  • Using Docker? What image: no docker
  • Command you ran: codemon server.js --verbose

Expected behaviour

[nodemon] starting node server.js

after the restart

Actual behaviour

blair@BlairM MINGW64 ~/Desktop/UdemyWebBootcamp/express_server $ nodemon server.js --verbose [nodemon] 2.0.6 [nodemon] to restart at any time, enter rs [nodemon] or send SIGHUP to 10712 to restart [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting node server.js [nodemon] forking [nodemon] child pid: 17752 [nodemon] watching 3 files

Example app listening at http://localhost:3000 [nodemon] files triggering change check: server.js [nodemon] matched rule: **. [nodemon] changes after filters (before/after): 1/1 [nodemon] restarting due to changes… [nodemon] server.js

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

Steps to reproduce

server.js

const express = require(‘express’); const app = express(); const port = 3000;

app.get(‘/’, (req, res) => { res.send(‘Hello Tnbnbnbnfdsdfsdfsdfbnhis!’); });

app.listen(port, () => { console.log(" "); console.log(Example app listening at http://localhost:${port}); });

package.json

{ “name”: “express_server”, “version”: “1.0.0”, “description”: “a server”, “main”: “server.js”, “scripts”: { “test”: “echo "Error: no test specified" && exit 1”, “start”: “node server.js” }, “author”: “Mickie”, “license”: “ISC”, “dependencies”: { “express”: “^4.17.1” } }


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 3 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
m-s-morgancommented, Jan 5, 2021

@remy sorry for the confusion. I was simply stating that I’m experiencing similar behavior where the server will attempt to restart after changes, but will hang at “restarting due to changes…” Pressing enter will proceed with the restart in my case but it doesn’t seem to do so for @MickieBlair

1reaction
m-s-morgancommented, Jan 4, 2021

I’m seeing this same issue. Manually pressing enter will continue the restart, but that’s obviously not a solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Services do not automatically restart on a computer that uses ...
Resolves a problem in which services do not automatically restart on a computer that uses NIC Teaming.
Read more >
Dell PowerEdge: Troubleshooting a Server that does not start ...
This article provides information about how to troubleshoot No Power, No POST, No Boot and No Video issues on a Dell PowerEdge Server....
Read more >
Server service does not start automatically after system reboot.
Change the service "startup type" from "automatic" to "automatic (Delayed Start )" . That will delay the service start by a couple of...
Read more >
Automatic services doesn't start automatically after windows ...
Turned out my business-critical servers were not synching with ntp server 'cause Windows Time service has suddenly changed its start type from ...
Read more >
WebLogic Managed Server Instances Not Starting after a ...
Oracle products that have a NodeManager have a known issue where if the server was rebooted without first stopping WebLogic, there may be...
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