安装了pomelo-cli之后,运行命令报错

用npm安装:npm install -g pomelo-cli
在运行的时候报错:
pomelo-cli -h 127.0.0.1 -P 3005 -u admin -p admin

报错:
/usr/local/lib/node_modules/pomelo-cli/node_modules/pomelo-admin/node_modules/pomelo-scheduler/node_modules/log4js/lib/log4js.js:25
const debug = require('debug')('log4js:main');
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module.compile (module.js:443:25)
at Object.Module.
extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module.load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/pomelo-cli/node_modules/pomelo-admin/node_modules/pomelo-scheduler/lib/cronTrigger.js:4:14)
at Module.
compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)

请问是版本问题吗?

标签: pomelo
ljn000 在 9-20 16:16发布 分享到 weibo
回到顶部