javascript - 无法在 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)
有什么帮助吗??
解决方案
推荐阅读
- umbraco - 从 Umbraco 8 中的视图访问外部数据库的问题
- javascript - JavaScript - 在提交按钮后将用户重定向到 API 响应中提供的 URL
- apache2 - Apache2 根据位置匹配路由到不同的文件夹
- javascript - javascript elm 打破 css 悬停
- javascript - 在 Asp.net core mvc 中登录后如何重定向到上次访问的页面
- java - 用按钮绑定 sqlite db
- authentication - 如何使用 Cookie 身份验证方案以外的任何内容添加身份验证处理程序?
- javascript - 刷新使用 Leafletjs 创建的地图的标记
- python - Python:SVG 到 PNG 的转换问题
- angularjs - 如何将某个功能从 AngularJS 升级到 Angular 6 或更高版本?