我正在构建一个使用关键 css 提取插件的 vue/gridsome 应用程序。这一切都在本地运行良好,但我正在努力构建 github 操作。
Extract critical CSS (1 pages)
Error: Failed to launch the browser process!
/github/workspace/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while
loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
我已经搜索了解决方案,似乎缺少 linux / unbuntu 依赖项,所以我尝试将它们添加到我的 yml 工作流程中:https ://medium.com/@cloverinks/how-to-fix-puppetteer-error- ibx11-xcb-so-1-on-ubuntu-152c336368
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Req
run: sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
它仍然失败,我错过了一步还是 azure static web 应用程序和 github 操作有限制?
谢谢