wangrongding / wechat-bot

🤖一个基于 WeChaty 结合 OpenAi ChatGPT / Kimi / 讯飞等Ai服务实现的微信机器人 ,可以用来帮助你自动回复微信消息,或者管理微信群/好友,检测僵尸粉等...
MIT License
5.16k stars 730 forks source link

PuppetWeChatBridge start() exception: Error: An `executablePath` or `channel` must be specified for `puppeteer-core` #60

Closed skychecker closed 6 months ago

skychecker commented 1 year ago

sky@raspberrypi:~/projects/wechat-bot $ npm i npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated puppeteer@13.7.0: < 18.1.0 is no longer supported

added 493 packages in 2m sky@raspberrypi:~/projects/wechat-bot $ cp .env.example .env sky@raspberrypi:~/projects/wechat-bot $ nano .env sky@raspberrypi:~/projects/wechat-bot $ npm run dev

wechat-boot@1.0.0 dev node ./index.js

23:02:15 ERR PuppetWeChatBridge start() exception: Error: An executablePath or channel must be specified for puppeteer-core 23:02:15 ERR PuppetWeChat initBridge() exception: An executablePath or channel must be specified for puppeteer-core 23:02:15 ERR PuppetWeChat initBridge() this.bridge.stop() rejection: Error: no page GError: An executablePath or channel must be specified for puppeteer-core at assert (/home/sky/projects/wechat-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:28:15) at ChromeLauncher.launch (/home/sky/projects/wechat-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:69:36) at PuppeteerNode.launch (/home/sky/projects/wechat-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:154:105) at PuppeteerExtra.launch (/home/sky/projects/wechat-bot/node_modules/puppeteer-extra/dist/index.cjs.js:128:41) at async Bridge.initBrowser (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:109:23) at async Bridge.start (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:48:28) at async PuppetWeChat.initBridge (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:176:13) at async PuppetWeChat.onStart (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:69:23) at async PuppetWeChat.start (file:///home/sky/projects/wechat-bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17) at async PuppetWeChat.start (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13) { code: 2, details: 'Error: An executablePath or channel must be specified for puppeteer-core\n' + ' at assert (/home/sky/projects/wechat-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:28:15)\n' + ' at ChromeLauncher.launch (/home/sky/projects/wechat-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:69:36)\n' + ' at PuppeteerNode.launch (/home/sky/projects/wechat-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:154:105)\n' + ' at PuppeteerExtra.launch (/home/sky/projects/wechat-bot/node_modules/puppeteer-extra/dist/index.cjs.js:128:41)\n' + ' at async Bridge.initBrowser (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:109:23)\n' + ' at async Bridge.start (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:48:28)\n' + ' at async PuppetWeChat.initBridge (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:176:13)\n' + ' at async PuppetWeChat.onStart (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:69:23)\n' + ' at async PuppetWeChat.start (file:///home/sky/projects/wechat-bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17)\n' + ' at async PuppetWeChat.start (file:///home/sky/projects/wechat-bot/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13)' } sky@raspberrypi:~/projects/wechat-bot $

wangrongding commented 1 year ago

参考 issue#54