我遇到了问题 运行 debian 中带有节点 js 的 js 脚本
I'm having trouble running a js script in debian with node js
我如何 运行 脚本:
node site.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' } ] }) - must have a property "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)
at new Configuration (/home/bot/node_modules/log4js/lib/configuration.js:203:10)
at Object.configure (/home/bot/node_modules/log4js/lib/log4js.js:205:12)
at Object. (/home/bot/site.js:36:8)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
我不知道该怎么做才能解决这个问题,有人可以帮助我吗?
我只需要在我的 site.js 文件中将我的 appender 部分从版本 v1 更新到 v2!
我如何 运行 脚本:
node site.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' } ] }) - must have a property "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) at new Configuration (/home/bot/node_modules/log4js/lib/configuration.js:203:10) at Object.configure (/home/bot/node_modules/log4js/lib/log4js.js:205:12) at Object. (/home/bot/site.js:36:8) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12)
我不知道该怎么做才能解决这个问题,有人可以帮助我吗?
我只需要在我的 site.js 文件中将我的 appender 部分从版本 v1 更新到 v2!