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 -vprints: v18.13.0- Windows, macOS, or Linux?: macOS Ventura 13.0
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 14
- Comments: 29 (5 by maintainers)
Commits related to this issue
- feat: include some settings as fields in the lockfile ref #6312 — committed to pnpm/pnpm by zkochan 4 years ago
- feat: include some settings as fields in the lockfile ref #6312 — committed to pnpm/pnpm by zkochan 4 years ago
- feat: include some settings as fields in the lockfile ref #6312 — committed to pnpm/pnpm by zkochan 4 years ago
- feat: include some settings as fields in the lockfile (#6557) ref #6312 — committed to pnpm/pnpm by zkochan 4 years ago
- feat: include some settings as fields in the lockfile (#6557) ref #6312 close #6609 — committed to pnpm/pnpm by zkochan 4 years ago
- feat: include some settings as fields in the lockfile (#6611) ref #6312 close #6609 — committed to pnpm/pnpm by zkochan 3 years ago
- Improved error formatting Technical Change Notes ====================== This now uses GitHub `core.summary`. See the [job summaries][] blog post. There are some changes caused by annoying upgrades:... — committed to KineticCafe/actions-dco by halostatue 3 years ago
- Improved error formatting Technical Change Notes ====================== This now uses GitHub `core.summary`. See the [job summaries][] blog post. There are some changes caused by annoying upgrades:... — committed to KineticCafe/actions-dco by halostatue 3 years ago
- Update pnpm version to 9.12.0 in CI workflows - Fixes issues with pnpm v9.0 as mentioned in https://github.com/pnpm/pnpm/issues/6312 - Updates both ci.yml and code-size.yml workflows - 9.12.0 matches... — committed to captbaritone/webamp by captbaritone a year ago
- Migrate from yarn to pnpm (#1303) * Migrate from yarn to pnpm This comprehensive migration includes: ### Configuration Updates - Updated root package.json with pnpm workspace configuration - Added ... — committed to captbaritone/webamp by captbaritone a year ago
Just manually change the version number
Just upgraded lockfileVersion in pnpm.lock.yaml from 6.0 to 8.5.1 and boom, deployed successfully
I’m seeing this with version 9 of the lock file ( pnpm v10.4.1):
Interestingly the error is
We’re removed all mention of _cicd from the monorepo and don’t understand where this comes from. I’ve run
pnpm -r updateand pushed those changes, and it still says the lock file is out of date.Try downgrading PNPM to v7 or upgrade the lockfile to v8
I’m seeing this error only on
CI.My problem is not why lock file is not latest. My problem is why pnpm output:
@zkochan
make sure the lockfileVersion is the same as the one you have on the github actions you’ve set up on the .yaml file. lock.yaml -> lockfileVersion: 9.0 <=> CI.yaml -> add - name: Install pnpm uses: pnpm/action-setup@v2 with: version: 9.0
Same here. Removed all references to a package in my monorepo but and get the same error still. How did you fix it?
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 falseused this command on the mac to fix the issueI 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.