在帆中调试时收听EADDRINUSE错误 [英] Listen EADDRINUSE error while debugging in sails
问题描述
我正在尝试使用 node-inspector 调试我的代码,但是我的终端窗口中一再出现此错误
I am trying to debug my code using node-inspector but I am getting this error in my Terminal window again and again
$ sudo sails debug
info: Running app in debug mode...
info: You probably want to install / run node-inspector to help with debugging!
info: https://github.com/node-inspector/node-inspector
info: ( to exit, type <CTRL>+<C> )
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Agent.Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at Agent.Server.listen (net.js:1267:5)
at Object.start (_debugger_agent.js:20:9)
at startup (node.js:86:9)
at node.js:814:3
解决
错误:听EADDRINUSE
Error : listen EADDRINUSE
我已经尝试关闭其他终端窗口(我的节点检查器正在运行)。
我已经在StackOverflow上提到了这里的答案,但是他们没有工作
我甚至尝试给这个命令杀死进程:
I have tried closing other Terminal window (in which my node-inspector was running). I have referred to the answers already here on StackOverflow but they didn't work I have even tried giving this command to kill processes :
$ killall -9 node
No matching processes belonging to you were found
但仍然不工作。
有人请帮我解决这个问题。
but still its not working. Somebody please help me out with this.
推荐答案
我看到你正在使用 sudo
所以这不是一个权限问题。
I see that you are using sudo
so this is not a permissions issue.
看起来好像端口已经在使用了。您应该检查哪个进程正在使用端口,然后杀死那个进程。
It definitely seems like the port is already in use. You should check to see which process is using the port, then kill that process.
这篇关于在帆中调试时收听EADDRINUSE错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!