I have been running Nodemon in my express app without any special configuration. In my package.json file, I only have the following:
"scripts": {
"start:dev": "nodemon app/app.js"
}
...
Everything runs smoothly until I make changes and Nodemon attempts to restart. At that point, I encounter an EADDRINUSE
error. Even after completely restarting, the same error persists.
To troubleshoot, I checked for other processes running on port 3001 (which is where Nodemon should run), and found output similar to this:
$ lsof -i :3001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 54343 myUserName 11u IPv6 0x1bdae98886f3261d 0t0 TCP *:redwood-broker (LISTEN)
Killing this process allows me to restart Nodemon, but the issue reoccurs whenever I modify files being watched by Nodemon.
Searching online, I found some references to redwood-broker
, but no solutions yet. Has anyone encountered this problem with Nodemon?
My current setup includes:
Express 4.16.2
Nodemon version 1.15.1
2016 MacBook Pro with Sierra 10.12.6
Any assistance would be highly appreciated!