我如何运行脚本:
节点站点.js
我得到的错误:
throw new Error(
Problem with log4js configuration: (${util.inspect(this.candida depth: 5 })})
+ ^ Error: Problem with log4js configuration: ({ appenders: [ { type: 'console' }, { type: 'file', filename: 'logs/site.log' } ] }) - 必须有一个属性“appenders”ype object. at tests.forEach (/home/bot/node_modules/log4js/lib/configuration.js:43:15) at Array.forEach (native) at Configuration.throwExceptionIf (/home/bot/node_modules/ log4js/lib/configuration.j11) 在新配置 (/home/bot/node_modules/log4js/lib/configuration.js:203:10) 在 Object.configure (/home/bot/node_modules/log4js/lib/log4js.js :205:12) 在 Object. (/home/bot/site.js:36:8) 在 Module._compile (module.js:577:32) 在 Object.Module._extensions..js (module.js:586 :10) 在 Module.load (module.js:494:32) 在 tryModuleLoad (module.js:453:12)
我不知道我应该怎么做才能解决这个问题,有人可以帮助我吗?