【发布时间】: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