admin管理员组文章数量:1418352
I am running Nodemon in an express app, and I've done no special configuration; in my package.json I have this:
"scripts": {
"start:dev": "nodemon app/app.js"
}
...
Everything goes fine until I make changes, and Nodemon goes to restart. I get an EADDRINUSE
error, so I'll try and restart pletely and I get the same error.
After this, I started checking for anything running on port 3001 (which is what Nodemon is supposed to run on), and get something like the following output:
$ lsof -i :3001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 54343 myUserName 11u IPv6 0x1bdae98886f3261d 0t0 TCP *:redwood-broker (LISTEN)
If I kill that process, I can finally restart Nodemon, but the same thing will happen the next time I make changes to the files being watched by Nodemon.
After scouring the Internet, I've seen some mentions of redwood-broker
, but nothing helpful so far. Has anyone seen this behavior with Nodemon?
I'm using the following:
Express 4.16.2
Nodemon version 1.15.1
2016 MacBook Pro with Sierra 10.12.6
Any help is greatly appreciated!
I am running Nodemon in an express app, and I've done no special configuration; in my package.json I have this:
"scripts": {
"start:dev": "nodemon app/app.js"
}
...
Everything goes fine until I make changes, and Nodemon goes to restart. I get an EADDRINUSE
error, so I'll try and restart pletely and I get the same error.
After this, I started checking for anything running on port 3001 (which is what Nodemon is supposed to run on), and get something like the following output:
$ lsof -i :3001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 54343 myUserName 11u IPv6 0x1bdae98886f3261d 0t0 TCP *:redwood-broker (LISTEN)
If I kill that process, I can finally restart Nodemon, but the same thing will happen the next time I make changes to the files being watched by Nodemon.
After scouring the Internet, I've seen some mentions of redwood-broker
, but nothing helpful so far. Has anyone seen this behavior with Nodemon?
I'm using the following:
Express 4.16.2
Nodemon version 1.15.1
2016 MacBook Pro with Sierra 10.12.6
Any help is greatly appreciated!
Share Improve this question edited Mar 22, 2018 at 22:58 hhoburg asked Mar 22, 2018 at 22:00 hhoburghhoburg 3832 silver badges10 bronze badges 7-
try to close your process with
control+c
– namila007 Commented Mar 27, 2018 at 21:43 - your problem is already discussed here > LINK – namila007 Commented Mar 27, 2018 at 21:45
-
I can stop the process with
control+c
, but that's not the issue. Also, the link you attached is referring to when the process crashes; whether Nodemon restarts itself, crashes, or is 'gracefully' shut down, it always leaves the child processes running. It may not be Nodemon, either; I'm not sure what the redwood-broker process is, because other machines don't necessarily have that process even when they are using Nodemon. – hhoburg Commented Mar 27, 2018 at 21:50 - hmm i dont know more. may be give a try to kill node and change its port – namila007 Commented Mar 27, 2018 at 22:34
- 1 This particular issue in nodemon is being tracked on github here github./remy/nodemon/issues/1247 - it's not solved yet because it can't be replicated by me (nodemon's author) and no one has been able to send a PR for it yet. But any additional info is weled. – Remy Sharp Commented Mar 29, 2018 at 13:46
1 Answer
Reset to default 4This issue happens to a few people. You could do below to try:
Option 1:
sudo pkill node
Option 2:
- sudo lsof -i :5955
Then kill the process which is currently running on the port using its PID
- sudo kill -9 PID
Hope it helps
本文标签: javascriptNodemon and RedwoodBrokerStack Overflow
版权声明:本文标题:javascript - Nodemon and Redwood-Broker - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745289523a2651705.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论