I am getting this error when i try to run my Discord bot

events.js:182

  throw er; // Unhandled 'error' event

  ^

Error: listen EADDRINUSE :::3000

at Object._errnoException (util.js:1041:11)

at _exceptionWithHostPort (util.js:1064:20)

at Server.setupListenHandle [as _listen2] (net.js:1322:14)

at listenInCluster (net.js:1370:12)

at Server.listen (net.js:1466:7)

at Function.listen (/app/node_modules/express/lib/application.js:618:24)

at Object. (/app/index.js:8:5)

at Module._compile (module.js:573:30)

at Object.Module._extensions..js (module.js:584:10)

at Module.load (module.js:507:32)

Try this command in your project console killall -s KILL node it will close any nodejs process.

I believe we would need a link to your code to be able to further help. This error isn’t descriptive enough for us to tell you exactly what’s wrong just from reading it.