Skip to content

Errors out on npm cache (no changes, worked fine until now) #1275

Closed
@bhaugeea

Description

@bhaugeea

Description:
The Setup Node.js action fails with Error: Cache service responded with 422. This was not happening until today and now it happens on the three existing repos I tried, plus the new minimal repro linked below. Using cache: 'npm'. Full log:

Run actions/setup-node@v2
Found in cache @ /opt/hostedtoolcache/node/22.14.0/x64
/opt/hostedtoolcache/node/22.14.0/x64/bin/npm config get cache
/home/runner/.npm
Error: Cache service responded with 422

Action version:
v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
node v22.14.0 on ubuntu locally, "22" in GitHub runner.

Repro steps:
https://github.com/bhaugeea/tmp

Expected behavior:
Until now the CI job in the repro succeeded.

Actual behavior:
Node-setup errors on an npm cache interaction.

Metadata

Metadata

Assignees

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