部署完成后,出现 no such file or directory 是要先截图吗?
valetzx opened this issue · 4 comments
valetzx commented
Brightcells commented
这是截图失败了吧,有具体的接口报错信息吗?
valetzx commented
Brightcells commented
- Puppeteer 下载 Chromium 的时候并没有解决依赖问题
- CentOS查看依赖,其他发行版不确定
$ ldd ~/node_modules/puppeteer/.local-chromium/linux-000000/chrome-linux/chrome | grep not libatk-bridge-2.0.so.0 => not found libatspi.so.0 => not found libgtk-3.so.0 => not found libgdk-3.so.0 => not found
- 将缺少的依赖,依次进行安装,然后再尝试下
- 后续把安装 Chrome 依赖也完善到 README 里
Brightcells commented
@valetzx 看你报错的截图,是缺少 libgobject-2.0.so.0
可能还缺少其他的,都安装之后再看下吧