A cache restores but the build is still slow and reinstalls everything.
IntermediateTroubleshootingCaching, Artifacts, Builds & Scans
Answer
Likely causes → Cached the wrong path (node_modules with npm ci, which deletes it), path mismatch between OS (~/.npm vs %AppData%), restore-key hit an old cache with mostly stale content, or the tool uses a different cache directory (Yarn Berry, pnpm store).
Diagnose → npm config get cache, pnpm store path, check restored size in logs.
Fix → Cache the tool's real cache path, or use setup-node's cache: pnpm.
Prevent → Measure step durations with and without cache.
More on Caching, Artifacts, Builds & Scans
`Cache not found for input keys: npm-Linux-3f9a...` on every single run.Beginner`Failed to save: Unable to reserve cache with key npm-Linux-3f9a..., another job may be creating this cache.`Beginner`Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run`Beginner`Error: Unable to download artifact(s): Artifact not found for name: build`Beginner`Warning: No files were found with the provided path: coverage/. No artifacts will be uploaded.` but tests ran.Beginner`ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref ...: "/package-lock.json": not found`Intermediate