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
pnpm install --frozen-lockfile fails with pnpm 7 after upgrading lockfile to 6.1 from 6.0 #6609
Comments
downgrading to |
I think old pnpm should also support installing lock file 6.1. |
@hjaber I can confirm that by downgrading to pnpm@8.5.1 solved the issue for me as well. |
Can confirm that this is an issue and definitely a bug since it was only a minor version bump. I can't even publish default create-next-app template to Vercel. |
Also happens with that dependency:
|
Got exact the same error on Vercel after upgrading lockfile to 6.1:
Downgrade to pnpm@8.5.1 and regenerate the lockfile works for me. |
I'll try to port it to v7 later. |
I am running |
There was a bug in the code that checks the version of the lockfile. That is why it fails. The version was changed to 6.1 and the code cannot detect it as v6. Update pnpm on the server to v8.6 |
If you, like me, experienced this problem with a v6.1 lockfile on Vercel, then good news: Looks like they updated pnpm now, effectively resolving the issue. |
🚢 7.33.0 for consistent install between v7 and v8 you also need to set |
=> ERROR [stage0 3/3] RUN pnpm i --frozen-lockfile 1.2s
Dockerfile:4745 | # COPY ./bin/postinstall.js /app/bin/postinstall.js |
pnpm version: 7.32.5
Code to reproduce the issue:
cssnano/cssnano#1504
Expected behavior:
pnpm 7.x.x manages to install the dependencies when the lockfile version is 6.1,
since the major lockfile version did not change
Actual behavior:
pnpm fails and prints this error:
It is not even possible to downgrade the lockfile, because running
pnpm --no-frozen-lockfile
gives a different error:Additional information:
node -v
prints: v20.2.0The text was updated successfully, but these errors were encountered: