webstorm+chatofpomelo 启动报错 spawn enoent
发布于 11 年前 作者 duni2013 8726 次浏览 最后一次编辑是 8 年前

“C:\Program Files\nodejs\node.exe” app.js evn=development [2013-08-07 12:43:03.200] [INFO] \node_modules\pomelo\lib\application.js - application inited: “master-server-1” [2013-08-07 12:43:03.493] [INFO] console - info: ‘socket.io started’ [2013-08-07 12:43:03.495] [INFO] \node_modules\pomelo\lib\master\master.js - masterHA not enabled, start servers [2013-08-07 12:43:03.496] [INFO] [default] - Executing cd “D:\pomeloDemo\pomelo_demo\game-server” && “C:\Program Files\nodejs\node.exe”–debug=8787 “D:\pomeloDemo\pomelo_demo\game-server\app.js” env=development id=connector-server-1 host=192.168.80.29 port=4050 clientPort=3050 frontend=true args=–debug=8787 serverType=connector on 192.168.80.29 [2013-08-07 12:43:03.498] [INFO] [default] - Executing cd “D:\pomeloDemo\pomelo_demo\game-server” && “C:\Program Files\nodejs\node.exe”–debug=8788 “D:\pomeloDemo\pomelo_demo\game-server\app.js” env=development id=chat-server-1 host=192.168.80.29 port=6050 args=–debug=8788 serverType=chat on 192.168.80.29 [2013-08-07 12:43:03.499] [INFO] [default] - Executing cd “D:\pomeloDemo\pomelo_demo\game-server” && “C:\Program Files\nodejs\node.exe”–debug=8789 “D:\pomeloDemo\pomelo_demo\game-server\app.js” env=development id=gate-server-1 host=192.168.80.29 clientPort=3014 frontend=true args=–debug=8789 serverType=gate on 192.168.80.29 [2013-08-07 12:43:03.501] [INFO] \node_modules\pomelo\node_modules\pomelo-admin\lib\consoleService.js - try to connect master: “master”, “127.0.0.1”, 3005 [2013-08-07 12:43:03.515] [INFO] console - ----------------->>>>>>>>>>>>>>>>>>>>>>> [2013-08-07 12:43:03.516] [ERROR] console - Caught exception: Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) [2013-08-07 12:43:03.516] [INFO] console - ----------------->>>>>>>>>>>>>>>>>>>>>>> [2013-08-07 12:43:03.516] [ERROR] console - Caught exception: Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) [2013-08-07 12:43:03.516] [INFO] console - ----------------->>>>>>>>>>>>>>>>>>>>>>> [2013-08-07 12:43:03.517] [ERROR] console - Caught exception: Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) [2013-08-07 12:43:03.852] [INFO] \node_modules\pomelo\lib\application.js - “master-server-1” enter after start… [2013-08-07 12:43:03.852] [INFO] \node_modules\pomelo\lib\application.js - “master-server-1” finish start =================================以上是报错的内容======================== 我在使用webstorm启动chatofpomleo的时候报错了,之前还好好的,不知道什么原因… 请大侠指导…

2 回复

这个问题后来仔细回想一下,是我的ip地址变了,而我的server.json配置的是我本机的ip,所以报错。今天吐槽一下,nodejs有些报错信息很不准确啊。

@duni2013 遇到了同样的问题,同样方法解决了

回到顶部