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

Node v26 not working in Docker image after installing Node due to missing libatomic

未关闭
#4,591 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@yooknee 已经在做这个了。

开始于 2026年8月17日。

  • #4640 来自 @yooknee —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
67/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
docker, linux, node.js

调研方向

从最新的 actions-runner Linux 容器镜像及其软件包安装设置开始,然后使用此处所示的 actions/runner 镜像和 actions/setup-node@v6 步骤重现问题。确认 Node.js 26 在更改前失败,并在更改后运行。镜像提供 libatomic1 且 Node.js 26 的 environment-details 步骤在没有缺少库错误的情况下完成,即表示完成。

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

描述

bug

Describe the bug

Since Node v25 (now EOL), Node requires the libatomic1 package. See also https://github.com/npm/cli/issues/8680

If I install Node 26 with actions/setup-node, I get errors such as this:

Warning: /home/runner/_work/_tool/node/26.5.1/x64/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

To Reproduce

Use the latest actions-runner (Linux) image, e.g. as part of ARC scale set.

Install node:

      - name: Setup Node.js
        uses: actions/setup-node@v6
        with:
          node-version: '26'

That step/action already shows the error when expanding "Environment details"

Image

Expected behavior

If you would preinstall libatomic1 this fix the issue. It is to be expected that people install Node.js, so it should actually work.

Runner Version and Platform

Linux AMD64 2.336.0

主要语言
C#
星标
6.3k
派生
1.5k
平均合并
1 天 21 分钟
30 天内合并 PR
24

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

actions/runner 的其他 Issue

查看 actions/runner 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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