在本地运行没问题,通过linux的docker container运行的时候报错:
[PCR] Chromium revision: [35m869685[39m [PCR] Not found local chromium Monitoring: https://storage.googleapis.com Time: 2022-05-08 05:08:48 Monitoring: https://npm.taobao.org/mirrors Time: 2022-05-08 05:08:48 [PCR] Downloading from host: https://storage.googleapis.com ... [PCR] Downloading from host: https://storage.googleapis.com ... [PCR] Downloading from host: https://storage.googleapis.com ...
[PCR] Downloading from host: https://storage.googleapis.com ...
[PCR] Chromium downloaded to /root/.chromium-browser-snapshots [PCR] Checking prevIoUs local chromium revisions ... Error: Failed to launch the browser process! /root/.chromium-browser-snapshots/linux-869685/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at onClose (/ia-ui-automation/node_modules/horseshoe-cli-auto/node_modules/puppeteer-core/lib/cjs/puppeteer/node/browserRunner.js:194:20) at Interface.<anonymous> (/ia-ui-automation/node_modules/horseshoe-cli-auto/node_modules/puppeteer-core/lib/cjs/puppeteer/node/browserRunner.js:184:68) at Interface.emit (events.js:412:35) at Interface.close (readline.js:530:8) at Socket.onend (readline.js:254:10) at Socket.emit (events.js:412:35) at endReadableNT (internal/streams/readable.js:1334:12) at processticksAndRejections (internal/process/task_queues.js:82:21) [PCR] Chromium executablePath: [32m/root/.chromium-browser-snapshots/linux-869685/chrome-linux/chrome[39m [PCR] Chromium launchable: [31mfalse[39m [PCR] Puppeteer version: [35m9.1.1[39m [PCR] Stats saved: node_modules/horseshoe-cli-auto/node_modules/puppeteer-chromium-resolver/.stats.json [42m[worker2][49m [42m[job 2][49m [35m[puppeteer][39m [32msuccess[39m[31m (cost 10,544ms)[39m [42m[worker2][49m [42m[job 2][49m [35m[browser][39m launch ... [91m(node:45) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。