nodejs / nodejs/node

Node should run on Debian/Ubuntu-based images without having to manually install libatomic first

Ouverte
#60,790 13 commentaires 18 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

feature request v26.x
Langage dominant
JavaScript
Étoiles
122k
Forks
37.4k
Merge moyen
4 j 3 h
PR mergées (30 j)
272

Description

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?
  1. nvm could plausibly install libatomic, that said, over at nvm the sentiment was that Node was the place to address this.
  2. debian / ubuntu could plausibly include libatomic in their images
  3. all projects that provide debian / ubuntu based images and imagine their image could be used to run node could plausibly provide libatomic
  4. 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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par les notes officielles sur la plateforme binaire et la toolchain dans BUILDING.md, puis reproduisez Node 25+ dans les images Debian et Ubuntu indiquées. Déterminez si la distribution Node peut résoudre la dépendance libatomic manquante, et validez que les commandes Node s’exécutent sans l’installer manuellement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
debian, javascript, linux, node.js, ubuntu
Domaine
devops, operating-systems
Type d'issue
Bug
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.