Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Update devcontainer with chromium dependencies

未关闭
#52 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
devops, testing-qa

调研方向

检查仓库的 devcontainer 配置,并在全新的 Codespace 中使用 npm install && npm run test 重现该失败。对 Chromium 二进制文件使用 ldd,以验证 issue 中列出的缺失库。完成的标准是 ChromeHeadless 成功启动,并且测试命令不再报告缺失的共享库。

由索引模型根据 Issue 内容生成。

描述

When attempting to npm install && npm run test in a fresh codespace, we initially see an error related to a missing shared library:

26 04 2022 14:32:23.081:ERROR [launcher]: Cannot start ChromeHeadless
        /workspaces/paste-markdown/node_modules/chromium/lib/chromium/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

Running

ldd /workspaces/paste-markdown/node_modules/chromium/lib/chromium/chrome-linux/chrome | grep not

shows a list of libraries similar to that in https://github.com/dtolstyi/node-chromium/issues/52#issuecomment-1028727251

        libnss3.so => not found
        libnssutil3.so => not found
        libsmime3.so => not found
        libnspr4.so => not found
        libatk-1.0.so.0 => not found
        libatk-bridge-2.0.so.0 => not found
        libcups.so.2 => not found
        libdrm.so.2 => not found
        libxkbcommon.so.0 => not found
        libXcomposite.so.1 => not found
        libXdamage.so.1 => not found
        libXfixes.so.3 => not found
        libXrandr.so.2 => not found
        libgbm.so.1 => not found
        libpango-1.0.so.0 => not found
        libcairo.so.2 => not found
        libasound.so.2 => not found
        libatspi.so.0 => not found

^^ This correlates pretty well to https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix

主要语言
JavaScript
星标
234
派生
47
平均合并
1 天 12 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/paste-markdown 的其他 Issue

查看 github/paste-markdown 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。