pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

pomelo start 出错

Open lyls opened this issue 13 years ago • 8 comments

centos 6 环境

[root@localhost game-server]# pomelo start

/root//helloWorld/game-server/node_modules/pomelo/node_modules/pomelo-logger/node_modules/log4js/lib/log4js.js:205

        throw new Error("Problem reading log4js config " + util.inspect(co
             ^

Error: Problem reading log4js config { appenders: [ { type: 'file', filename: './logs/node-log-master-server-1.log', fileSize: 1048576, layout: [Object], backups: 5 }, { type: 'console' }, { type: 'file', filename: './logs/rpc-log-master-server-1.log', fileSize: 1048576, layout: [Object],

................................

replaceConsole: true }. Error was "Cannot find module 'file'" (Error: Cannot find module 'file' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at loadAppender (/root/helloWorld/game-server/node_modules/pomelo/node_modules/pomelo-logger/node_modules/log4js/lib/log4js.js:290:26) at /root/helloWorld/game-server/node_modules/pomelo/node_modules/pomelo-logger/node_modules/log4js/lib/log4js.js:145:13 at Array.forEach (native) at configureAppenders (/root/hello

lyls avatar Mar 20 '13 06:03 lyls

├── [email protected] extraneous └─┬ [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] └─┬ [email protected] └── [email protected]

lyls avatar Mar 20 '13 06:03 lyls

遇到同样的问题,我npm install file 自己安装了个file 模块,但是出现了新问题,请问你现在解决掉了吗?

a289459798 avatar Mar 20 '13 07:03 a289459798

没有的,安装了file会出现bind的问题

lyls avatar Mar 20 '13 08:03 lyls

哎,纠结,我就是出现了bind问题

a289459798 avatar Mar 20 '13 08:03 a289459798

解决了,真费劲,要把[email protected] 移除,重装中安装[email protected]

lyls avatar Mar 20 '13 08:03 lyls

请问下怎么重装制定版本的log4js

peiweippww avatar Mar 22 '13 08:03 peiweippww

在你的app 的node_module/pomelo_logger/ 下修改package.json >=5.3 修改为=5.7 然后删除pomelo_logger 目录下的node_module 目录,然后npm install -d 重现安装

a289459798 avatar Mar 22 '13 09:03 a289459798

替换了0.5.7版本后,又出现了个“Caught exception: Error: listen EADDRINUSE”错误

strivingzhou avatar Mar 23 '13 07:03 strivingzhou