Why does pnpm install fail in CI?
Thought for 5s
CI installs with a frozen lockfile, so the install stops when package.json and pnpm-lock.yaml disagree. I should check what the last commit changed, then reproduce the install.
Ran pnpm --version
10.18.0
Ran git diff --stat HEAD~1 -- package.json pnpm-lock.yaml
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Failed to run pnpm install --frozen-lockfile
ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
Used 2 sources

The last commit bumped a version in package.json without updating pnpm-lock.yaml, so the frozen install fails. Run pnpm install locally and commit the lockfile.