EADDRINUSE :::3000 error - how do i fix this?

If I try to do “node <script” i am presented with this error log: Error: listen EADDRINUSE :::3000 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at Server.setupListenHandle [as _listen2] (net.js:1305:14) at listenInCluster (net.js:1353:12) at Server.listen (net.js:1453:7) at Server.listen.Server.attach (/home/Bot/node_modules/ at Timeout._onTimeout (/home/Bot/site.js:1005:29) at ontimeout (timers.js:488:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:283:5) code: ‘EADDRINUSE’, errno: ‘EADDRINUSE’, syscall: ‘listen’, address: ‘::’, port: 3000 }

anyone know how to fix?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


That’s good you have backup - very important.

You shouldn’t need to install anything - except if you use non-standard Node modules.

Is it your own code or is it a project you have downloaded? If it’s your own code, then you need to post it in so we can have a look at the configuration, because it seems like it’s not configured correctly. If it’s a project, which and from where have you downloaded it?

just power off the droplet by sudo poweroff and then switch the power on using control panel.


Okay, those configurations doesn’t seem to do anything and it doesn’t match the ports the services are listening on.

So you’re only interested in running a Node.js application ?

May I recommend that you start over by reinstalling the server, following this tutorial:

Otherwise you could start a droplet using the One-Click App, which would give you a pre-installed Node.js with Nginx (I think it comes with, but might be Apache).