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 Build a Simple Dynamic Site with Node.js Handling Routes in Node.js Populating User Information

Andrew Hoyt
Andrew Hoyt
7,803 Points

Unhandled Error Node.js stage 2 video 3 I copy and pasted the profile.js, app.js and router.js but doesnt work.

Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at Object.<anonymous> (/home/treehouse/workspace/app.js:10:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

1 Answer

Kostas Oreopoulos
Kostas Oreopoulos
15,184 Points

The error the first one (listen EADDRINUSE) says that the address you are trying to use is already in use. try another port

(either another program is using that port or you didnt close a previous node app instance)