安装 puppeteer 2 elastickbeanstalk [英] installing puppeteer 2 elastickbeanstalk

查看:17
本文介绍了安装 puppeteer 2 elastickbeanstalk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 aws AWS Elastic Beanstalk 上部署 puppeteer.

I can't deploy puppeteer on aws AWS Elastic Beanstalk.

我收到以下错误:

无法启动浏览器进程!\n/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome:/lib64/libdbus-1.so.3: no可用的版本信息(/usr/lib64/libatk-bridge-2.0.so.0 需要)\n/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome:/lib64/libdbus-1.so.3:没有可用的版本信息(/usr/lib64/libatspi.so.0 需要)\n/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome:符号查找错误:/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome:未定义符号:g_type_class_adjust_private_offset\n\n\n故障排除:https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md\n"

Failed to launch the browser process!\n/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: /lib64/libdbus-1.so.3: no version information available (required by /usr/lib64/libatk-bridge-2.0.so.0)\n/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: /lib64/libdbus-1.so.3: no version information available (required by /usr/lib64/libatspi.so.0)\n/var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: symbol lookup error: /var/app/current/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: undefined symbol: g_type_class_adjust_private_offset\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md\n"

有人遇到过同样的问题并设法解决了吗?

Did anyone had the same issue and managed to solve it?

推荐答案

最后我用这个解决了:

packages:
  yum:
    compat-libtiff3: []

commands:
  chrome:
    command: curl https://intoli.com/install-google-chrome.sh | bash

这篇关于安装 puppeteer 2 elastickbeanstalk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆