简体   繁体   English

我在使用节点js在Debian中运行js脚本时遇到问题

[英]I'm having trouble running a js script in debian with node js

How I run the script: 我如何运行脚本:

node site.js 节点site.js

The error I get : 我得到的错误:

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) 引发新错误( Problem with log4js configuration: (${util.inspect(this.candida depth: 5 })}) + ^错误:log4js配置出现问题:({appenders:[{type:'console'},{type :'file',filename:'logs / site.log'}]})-必须在tests.forEach(/home/bot/node_modules/log4js/lib/configuration.js:43上具有属性“ appenders” ype对象:15)在Array.forEach(本机)在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.configure(/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)

I don't know what I should do to fix this, could someone please assist me? 我不知道该怎么做才能解决此问题,有人可以帮助我吗?

我只需要将site.js文件中的Appender部分从版本v1更新到版本v2!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM