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 trialPedro Sivero
2,257 PointsMy code is exactly the same as in the video. I am getting the following error when I try to run nodemon..
[nodemon] 1.10.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:953:11)
at exports._exceptionWithHostPort (util.js:976:20)
at Agent.Server._listen2 (net.js:1253:14)
at listen (net.js:1289:10)
at Agent.Server.listen (net.js:1385:5)
at Object.start (_debug_agent.js:21:9)
at startup (node.js:86:44)
at node.js:449:3
1 Answer
Steven Parker
231,271 PointsThe error "Error: listen EADDRINUSE :::5858
" suggests that some other process in your system is already using that port. Locate and terminate the other process, or consider using a different port here.
Pedro Sivero
2,257 PointsDo you know what are the commands to locate and terminate the port from running?
Steven Parker
231,271 PointsSteven Parker
231,271 PointsPost your properly formatted code or a snapshot of your workspace if you'd like someone to check it.