启动失败,但test却正常
#242
Replies: 1 comment
Answer selected by
Tsuk1ko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
用npm run test可以正常运行,start就报错
cq-picsearcher-bot@2.30.0 test C:\Users\Admin\cq-picsearcher-bot
node index.js
2021/8/27 下午6:18:27 配置已加载
2021/8/27 下午6:18:29 连接中[/event]#1
2021/8/27 下午6:18:29 连接中[/api]#1
2021/8/27 下午6:18:30 连接成功[/event]#1
2021/8/27 下午6:18:30 连接成功[/api]#1
终止批处理操作吗(Y/N)? y
cq-picsearcher-bot@2.30.0 start C:\Users\Admin\cq-picsearcher-bot
pm2 start ecosystem.config.js
[PM2] Applying action restartProcessId on app [cqps](ids: [ 0 ])
[PM2][ERROR] Process 0 not found
Process 0 not found
C:\Users\Admin\cq-picsearcher-bot\node_modules\pm2\lib\API.js:1722
acted.push(proc.pm2_env ? proc.pm2_env.pm_id : proc.pm_id)
^
TypeError: Cannot read property 'pm2_env' of undefined
at C:\Users\Admin\cq-picsearcher-bot\node_modules\pm2\lib\API.js:1722:25
at Array.forEach ()
at API.speedList (C:\Users\Admin\cq-picsearcher-bot\node_modules\pm2\lib\API.js:1721:18)
at C:\Users\Admin\cq-picsearcher-bot\node_modules\pm2\lib\binaries\CLI.js:301:15
at wrapper (C:\Users\Admin\cq-picsearcher-bot\node_modules\async\internal\once.js:12:16)
at replenish (C:\Users\Admin\cq-picsearcher-bot\node_modules\async\internal\eachOfLimit.js:76:25)
at iterateeCallback (C:\Users\Admin\cq-picsearcher-bot\node_modules\async\internal\eachOfLimit.js:65:17)
at C:\Users\Admin\cq-picsearcher-bot\node_modules\async\internal\onlyOnce.js:12:16
at C:\Users\Admin\cq-picsearcher-bot\node_modules\pm2\lib\binaries\CLI.js:292:11
at C:\Users\Admin\cq-picsearcher-bot\node_modules\pm2\lib\API.js:335:21
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cq-picsearcher-bot@2.30.0 start:
pm2 start ecosystem.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cq-picsearcher-bot@2.30.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\npm-cache_logs\2021-08-27T10_18_43_646Z-debug.log
PS C:\Users\Admin\cq-picsearcher-bot>
Beta Was this translation helpful? Give feedback.
All reactions