Node should run on Debian/Ubuntu-based images without having to manually install libatomic first
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
What is the problem this feature will solve?
Summary
Node 25.0.0 requires the libatomic library, it's in the docs since 25.2.0.
I've tried some current official Ubuntu images (24.04, 25.10, 26.04) and Debian images (12.12, 13.12) and none comes with libatomic installed.
Consequently installing node on Debian or Ubuntu will work, but running any commands will fail.
Why should this be supported
I assume that having a seamless installation experience, at least on major linux distros, is something Node would like to provide. I'm thinking a) install nvm, b) install node via nvm, c) done, you can use node now.
This is also how, for example, the npm docs tell you to install npm. And it no longer works on Debian or Ubuntu based images unless you also install "libatomic".
Debian and Ubuntu are two of the major linux distros. Many projects are using one of their images as the basis for their official docker images. For example, the official Jenkins image is debian based and the latest version (jenkins/jenkins:2.538-jdk21) can not run node 25+, unless you first install "libatomic" into the container that is.
What is the feature you are proposing to solve the problem?
I am not familiar enough with linux or node to tell whether or not node could include libatomic. But if that was possible and practical then that would allow debian and ubuntu based images to run node again without having to install libatomic first.
What alternatives have you considered?
- nvm could plausibly install libatomic, that said, over at nvm the sentiment was that Node was the place to address this.
- debian / ubuntu could plausibly include libatomic in their images
- all projects that provide debian / ubuntu based images and imagine their image could be used to run node could plausibly provide libatomic
- the end user that wants to run node in any debian / ubuntu based image could plausibly install libatomic
Out of these I've only really considered 1 and 4 real possibilities, though with the folks at nvm saying it's not their job it's either on Node itself or the end user, probably.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先查看 BUILDING.md 中关于二进制平台和工具链的官方说明,然后在列出的 Debian 和 Ubuntu 镜像中复现 Node 25+。确定 Node 发行版是否能够解决缺失的 libatomic 依赖,并验证无需手动安装它即可运行 Node 命令。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- debian, javascript, linux, node.js, ubuntu
- 领域
- devops, operating-systems
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100