Skip to content

[aw-failures] smoke-crush: EROFS on npm global install to read-only hostedtoolcache #28382

@github-actions

Description

@github-actions

Smoke Crush fails immediately at the Crush CLI install step because npm install -g @charmland/crush`` tries to write into /opt/hostedtoolcache/node/24.14.1/x64/lib/node_modules/, which is read-only on GitHub-hosted runners.

Affected Runs

Root Cause

EROFS: read-only file system,
mkdir '/opt/hostedtoolcache/node/24.14.1/x64/lib/node_modules/`@charmland/crush`/bin'

/opt/hostedtoolcache is managed by the setup-node action and is read-only after tool setup. A npm install -g without a custom prefix attempts to write into this path, which is locked.

Proposed Remediation

Change the Crush install step to use a writable prefix, e.g.:

- name: Install crush
  run: |
    npm install --prefix "$HOME/.crush" `@charmland/crush`
    echo "$HOME/.crush/bin" >> $GITHUB_PATH

Or use a local install (npm install @charmland/crush``) and invoke via npx.

Success Criteria

Generated by [aw] Failure Investigator (6h) · ● 274.8K ·

  • expires on May 2, 2026, 1:20 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions