首页 > 解决方案 > 无法在 AWS lambda 上运行 Puppeteer

问题描述

我正在尝试使用 AWSCloud9 在 AWS lambda 中运行一个小脚本,但总是出错......!

2020-04-06 20:21:45.163 Error: Failed to launch the browser process!
/var/task/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while 
loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
    at onClose (/var/task/node_modules/puppeteer/lib/Launcher.js:750:14)
    at Interface.<anonymous> (/var/task/node_modules/puppeteer/lib/Launcher.js:739:50)
    at Interface.emit (events.js:323:22)
    at Interface.close (readline.js:409:8)
    at Socket.onend (readline.js:187:10)
    at Socket.emit (events.js:323:22)
    at endReadableNT (_stream_readable.js:1204:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

有什么帮助吗??

标签: javascriptamazon-web-servicesaws-lambdapuppeteer

解决方案


推荐阅读