actions / actions/runner

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

Open
#4,591 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the latest actions-runner Linux container image and its package-installation setup, then reproduce the issue using the actions/runner image and the actions/setup-node@v6 step shown here. Confirm that Node.js 26 fails before the change and runs afterward. Done means the image provides libatomic1 and the Node.js 26 environment-details step completes without the missing-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux, node.js
Domain
devops, infrastructure, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.