Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署完成后,出现 no such file or directory 是要先截图吗? #1

Open
valetzx opened this issue Apr 26, 2022 · 4 comments
Open

Comments

@valetzx
Copy link

valetzx commented Apr 26, 2022

ENOENT: no such file or directory, stat '/home/runner/snap/ke-snap/public/media/24e27a89b39cebd2c415d1bc9be5953a.png'
404
Error: ENOENT: no such file or directory, stat '/home/runner/snap/ke-snap/public/media/24e27a89b39cebd2c415d1bc9be5953a.png'

请问该怎么截图,使用浏览器访问的话。

image

@Brightcells
Copy link
Collaborator

这是截图失败了吧,有具体的接口报错信息吗?

@valetzx
Copy link
Author

valetzx commented May 23, 2022

这是因为puppeteer没启动吗(看起来是的)
image
image
image

@Brightcells
Copy link
Collaborator

  • 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
Copy link
Collaborator

@valetzx 看你报错的截图,是缺少 libgobject-2.0.so.0
可能还缺少其他的,都安装之后再看下吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants