New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frozen lockfile error despite up to date lockfile #6312
Comments
Try downgrading PNPM to v7 or upgrade the lockfile to v8 |
I tried both, to no avail. |
I don't know currently why this is happening but I will add more details to the error message: #6536 |
My problem is not why lock file is not latest. My problem is why pnpm output:
|
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. |
Update to v8.5.1 and post the new error message. The new details should printed at the bottom with default color (not red). |
@Gregoor are the new details helping to localize the issue? Could you create a reproduction repo for this issue?
There is a related issue that claims that this only happens on Linux but works on macOS. |
I think I know why this is happening. Probably the lockfile was generated with pnpm v7 (which has This may also be reproduce on the same pnpm v8 version just by changing the value of the We should probably add a new field to the lockfile: autoInstallPeers. We should match to the current setting and print a more meaningful error message. EDIT:
|
can confirm upgrading to 8 on a mac causes this issue when it is run in linux
|
Thanks for looking into it. I actually lost track on which project it happened, sorry. But I can say that it is not an issue for me anymore. I think it might have been related to a global config which was setting (or unsetting) It might be useful to know when a project-local setting is overriden because of some system thing, e.g. a warning when running |
Updating to pnpm@8.5.1 and re-installing deps resolved this for me. |
Hey @zkochan, about those 2 explanations:
To understand things correctly, it means that the How I understand it right now is this way.
Then if a If this description is correct, then it means that it creates duplication of settings, inconsistency and possible confusion. Because of that, I'm not sure to fully understand this new lockfile option. Let me know what do you think and what's the purpose behind this update. EDIT: When I'm referring to CI, I'm talking about Vercel where you can't specify PNPM version. Otherwise, I think that the version is settable and the problem might not happen on CI. |
Technical Change Notes ====================== This now uses GitHub `core.summary`. See the [job summaries][] blog post. There are some changes caused by annoying upgrades: - Added a `.envrc` to ensure local builds and tests use Node 16. - Prettier 3 changes formatting defaults. - PNPM 8 also changes some defaults. Added a project `.npmrc` to work around pnpm/pnpm#6312. - Removed tests and jest. - Upgraded all dev dependencies. [job summaries]: https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/ Signed-off-by: Austin Ziegler <aziegler@kineticcommerce.com>
Technical Change Notes ====================== This now uses GitHub `core.summary`. See the [job summaries][] blog post. There are some changes caused by annoying upgrades: - Added a `.envrc` to ensure local builds and tests use Node 16. - Prettier 3 changes formatting defaults. - PNPM 8 also changes some defaults. Added a project `.npmrc` to work around pnpm/pnpm#6312. - Removed tests and jest. - Upgraded all dev dependencies. [job summaries]: https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/ Signed-off-by: Austin Ziegler <aziegler@kineticcommerce.com>
I had this problem in a CI env, and my solution was simply cloning the repo on a local machine and running The previous had |
You manually updated the version? |
How did y'all upgrade the lockfile version? I'm running |
Just manually change the version number |
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:
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.0The text was updated successfully, but these errors were encountered: