Answer the question
In order to leave comments, you need to log in
How to fix Error: listen EADDRINUSE?
Hello friends, I decided to put a bot for cs go.
With the node rz_bot command, the bot logs in, but if you turn on the bot itself using pm2 start rz_bot.js and then enter the node rz_bot command, then an error occurs
[email protected]:/bot# node rz_bot.js
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1158:14)
at listen (net.js:1184:10)
at Server.listen (net.js:1269:5)
at Server.listen.Server.attach (/bot/node_modules/socket.io/lib/index.js:216:9)
at new Server (/bot/node_modules/socket.io/lib/index.js:50:17)
at Function.Server (/bot/node_modules/socket.io/lib/index.js:38:41)
at Object.<anonymous> (/bot/rz_bot.js:45:31)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
[email protected]:/bot#
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question