at ChildProcess.onClose (file:///home/pico/BBA/node_modules/@puppeteer/browsers/lib/esm/launch.js:268:24)
at ChildProcess.emit (node:events:514:28)
at ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
win11,wsl2,ubuntu已经安装chrome,win11也安装了。 具体报错如下:
book_cn@write [] 请稍候,正在发起搜索请求… file:///home/pico/BBA/node_modules/@puppeteer/browsers/lib/esm/launch.js:268 reject(new Error([ ^
Error: Failed to launch the browser process! spawn /Applications/Google Chrome.app/Contents/MacOS/Google Chrome ENOENT
TROUBLESHOOTING: https://pptr.dev/troubleshooting
Node.js v18.17.1