Node should run on Debian/Ubuntu-based images without having to manually install libatomic first
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 122k
- Fork
- 37.4k
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 272
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các ghi chú chính thức về nền tảng nhị phân và toolchain trong BUILDING.md, sau đó tái hiện Node 25+ trong các image Debian và Ubuntu được liệt kê. Xác định liệu bản phân phối Node có thể xử lý dependency libatomic bị thiếu hay không, và xác thực rằng các lệnh Node chạy được mà không cần cài đặt thủ công dependency này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- debian, javascript, linux, node.js, ubuntu
- Lĩnh vực
- devops, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100