wechat-bot
wechat-bot copied to clipboard
运行报错
15:51:11 ERR PuppetWeChatBridge start() exception: Error: An executablePath or channel must be specified for puppeteer-core
15:51:11 ERR PuppetWeChat initBridge() exception: An executablePath or channel must be specified for puppeteer-core
15:51:11 ERR PuppetWeChat initBridge() this.bridge.stop() rejection: Error: no page
GError: An executablePath or channel must be specified for puppeteer-core
at assert (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\util\assert.js:28:15)
at ChromeLauncher.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:92:36)
at PuppeteerNode.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\PuppeteerNode.js:154:105)
at PuppeteerExtra.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-extra\dist\index.cjs.js:128:41)
at async Bridge.initBrowser (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:109:23)
at async Bridge.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:48:28)
at async PuppetWeChat.initBridge (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:176:13)
at async PuppetWeChat.onStart (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:69:23)
at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17)
at async PuppetWeChat.start (file:///D:/ChatGpt/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 (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\util\assert.js:28:15)\n' +
' at ChromeLauncher.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:92:36)\n' +
' at PuppeteerNode.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\PuppeteerNode.js:154:105)\n' +
' at PuppeteerExtra.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-extra\dist\index.cjs.js:128:41)\n' +
' at async Bridge.initBrowser (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:109:23)\n' +
' at async Bridge.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:48:28)\n' +
' at async PuppetWeChat.initBridge (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:176:13)\n' +
' at async PuppetWeChat.onStart (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:69:23)\n' +
' at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17)\n' +
' at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13)'
}
15:51:11 ERR PuppetWeChatBridge start() exception: Error: An
executablePathorchannelmust be specified forpuppeteer-core15:51:11 ERR PuppetWeChat initBridge() exception: AnexecutablePathorchannelmust be specified forpuppeteer-core15:51:11 ERR PuppetWeChat initBridge() this.bridge.stop() rejection: Error: no page GError: AnexecutablePathorchannelmust be specified forpuppeteer-coreat assert (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\util\assert.js:28:15) at ChromeLauncher.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:92:36) at PuppeteerNode.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\PuppeteerNode.js:154:105) at PuppeteerExtra.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-extra\dist\index.cjs.js:128:41) at async Bridge.initBrowser (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:109:23) at async Bridge.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:48:28) at async PuppetWeChat.initBridge (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:176:13) at async PuppetWeChat.onStart (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:69:23) at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17) at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13) { code: 2, details: 'Error: AnexecutablePathorchannelmust be specified forpuppeteer-core\n' + ' at assert (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\util\assert.js:28:15)\n' + ' at ChromeLauncher.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:92:36)\n' + ' at PuppeteerNode.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\PuppeteerNode.js:154:105)\n' + ' at PuppeteerExtra.launch (D:\ChatGpt\wechat-bot\node_modules\puppeteer-extra\dist\index.cjs.js:128:41)\n' + ' at async Bridge.initBrowser (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:109:23)\n' + ' at async Bridge.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:48:28)\n' + ' at async PuppetWeChat.initBridge (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:176:13)\n' + ' at async PuppetWeChat.onStart (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet-wechat/dist/esm/src/puppet-wechat.js:69:23)\n' + ' at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17)\n' + ' at async PuppetWeChat.start (file:///D:/ChatGpt/wechat-bot/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13)' } 和我的错误一样,使用prm换了taobao源也没用
看看#54