pnpm: Frozen lockfile error despite up to date lockfile

pnpm version: 8.0.0 (though 7.30 seems also affected)

Running pnpm install --frozen-lockfile yields:

Lockfile is up to date, resolution step is skipped
 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json

Now when I run pnpm install, there are no lockfile changes.

Interestingly enough this also happens:

❯ pnpm cache
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command failed with ENOENT: cache
spawn cache ENOENT

I don’t have a repro, because I’m somewhat sure that this is my system being bonked, but I also could not find any guides for doing a clean uninstall (I tried store pruning, resetted all the configs etc)

Additional information:

  • node -v prints: v18.13.0
  • Windows, macOS, or Linux?: macOS Ventura 13.0

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 11
  • Comments: 21 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Just upgraded lockfileVersion in pnpm.lock.yaml from 6.0 to 8.5.1 and boom, deployed successfully

image

How did y’all upgrade the lockfile version? I’m running 8.15.2 and it is still generates a lockfile version 6. We are using pnpm on the latest MacOS

Just manually change the version number

My problem is not why lock file is not latest. My problem is why pnpm output:

Lockfile is up to date, resolution step is skipped

@zkochan

Updating to pnpm@8.5.1 and re-installing deps resolved this for me.

can confirm upgrading to 8 on a mac causes this issue when it is run in linux

pnpm config set auto-install-peers false used this command on the mac to fix the issue

I understand what is your problem but I can’t fix it if I can’t reproduce it. You should provide steps to reproduce. If not, with more info in the error message maybe we’ll be able to figure out the issue.

Try downgrading PNPM to v7 or upgrade the lockfile to v8