【问题标题】:Puppeteer will not open chrome (getting error)Puppeteer 无法打开 chrome(出现错误)
【发布时间】:2019-12-31 04:40:09
【问题描述】:

我在 AWS 上运行一个 elastic-beanstalk 实例,并尝试使用 Puppeteer 在仪表板上构建一个 pdf 导出功能。我让应用程序在本地工作,但是当我在云上运行导出功能时,出现以下错误。

(node:1434) UnhandledPromiseRejectionWarning: 错误: 启动 chrome 失败! /var/app/current/node_modules/puppeteer/.local-chromium/linux-674921/chrome-linux/chrome:加载共享库时出错:libXcursor.so.1:无法打开共享对象文件:没有这样的文件或目录

要部署我正在压缩应用程序的内容(如果包含节点模块,则上传失败)并在以下配置上进行部署:

Environment tier:
Web Server

Platform:
Node.js running on 64bit Amazon Linux/4.10.1

Health status:
Ok

在我包含.npmrc 文件之前,我一直在努力部署应用程序。但是现在我无法运行该功能。

【问题讨论】:

标签: javascript node.js amazon-web-services puppeteer amazon-elastic-beanstalk


【解决方案1】:

看起来您缺少一些 Debian 依赖项,希望 link 有所帮助。

【讨论】:

    猜你喜欢
    • 2019-12-29
    • 1970-01-01
    • 2011-08-16
    • 2016-03-26
    • 2023-01-07
    • 1970-01-01
    • 1970-01-01
    • 2016-07-12
    • 1970-01-01
    相关资源
    最近更新 更多