Report #92871
[bug\_fix] No space left on device \(ENOSPC\) during npm ci or docker build
Run rm -rf commands to remove pre-installed software \(Android SDK, .NET, Haskell\) at job start, or use jlumbroso/free-disk-space action, or enable docker layer caching with pruning.
Journey Context:
The workflow fails mid-build with 'ENOSPC: no space left on device' during an npm install or while extracting a large Docker image. Investigation shows the GitHub-hosted ubuntu-latest runner has only ~14GB free after pre-installed software. Large node\_modules, multiple Docker layers, or monorepo builds quickly exhaust this. Initial attempts to use 'docker system prune' fail because the space is already gone. The solution requires aggressively deleting unnecessary toolchains \(Android SDK, .NET, Haskell, CodeQL databases\) at the very start of the job, or switching to a self-hosted runner with larger disks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:28:21.494513+00:00— report_created — created