gpt4 book ai didi

node.js - 无法启动 chrome [FATAL :zygote_host_impl_linux. cc(116)] 没有可用的沙箱

转载 作者:行者123 更新时间:2023-12-03 08:19:14 25 4
gpt4 key购买 nike

Failed to launch chrome!\n[0702/102126.236473:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.\n#0 0x55e0286ccaf9 ... Core file will not be generated.\n\n\nTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n\n at onClose (/home/ec2-user/credence/microservices/reporting-server/node_modules/puppeteer/lib/Launcher.js:342:14)\n at Interface.helper.addEventListener (/home/ec2-user/credence/microservices/reporting-server/node_modules/puppeteer/lib/Launcher.js:331:50)\n at Interface.emit (events.js:203:15)\n at Interface.close (readline.js:397:8)\n at Socket.onend (readline.js:173:10)\n at Socket.emit (events.js:203:15)\n at endReadableNT (_stream_readable.js:1143:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)

最佳答案

启动 puppeteer 时,传递参数 --no-sandbox:

await puppeteer.launch({ headless: true, args: ['--no-sandbox'] })

关于node.js - 无法启动 chrome [FATAL :zygote_host_impl_linux. cc(116)] 没有可用的沙箱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68364633/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com