Skip to content

setup-node@v4 fails on Alpine based containers #1293

Closed
@lawRathod

Description

@lawRathod

Description:
When using actions/setup-node@v4 within an Alpine Linux-based container or environment, the action appears to install Node.js successfully and adds the binary to the PATH. However, attempting to execute any Node.js command (e.g., node --version) results in a silent failure or an error indicating a libc incompatibility. This is likely due to the Node.js binaries provided by the action being compiled against glibc, while Alpine Linux uses musl libc.

Action version:
v4

Platform:

  • Ubuntu
  • macOS
  • Windows
    (Note: The issue occurs specifically on Alpine Linux, which is not listed above.)

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Applies to all versions

Repro steps:

Expected behavior:
The node binary should be executable.

Actual behavior:
The node binary fails to execute.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions