Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics (2015) Developing Express Apps Like a Boss Interactive Debugging and Exploratory Programming

Dan Kelley
Dan Kelley
8,759 Points

Error: listen EADDRINUSE :::5858 Can't run nodemon with --debug flag after node-inspector is started (using same port?)

I followed the instructions per the video, and I've tried to find a solution on my own, but I've come up short. It seems that if I first start node-inspector, it fires up as expected and says:

āžœ express-basics git:(interactiveDebuggingAndExploratoryProgramming) node-inspector Node Inspector v0.12.8 Visit http://127.0.0.1:8080/?port=5858 to start debugging.

Then I open my other terminal tab and run the comment and get the following error:

express-basics git:(interactiveDebuggingAndExploratoryProgramming) nodemon --debug src/app.js [nodemon] 1.11.0 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node --debug src/app.js Error: listen EADDRINUSE :::5858 at Object.exports._errnoException (util.js:907:11) at exports._exceptionWithHostPort (util.js:930:20) at Agent.Server._listen2 (net.js:1250:14) at listen (net.js:1286:10) at Agent.Server.listen (net.js:1382:5) at Object.start (_debug_agent.js:21:9) at startup (node.js:70:44) at node.js:974:3

Any ideas on how to fix this? Thanks!