Skip to content
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

Getting a lockfile config mismatch after upgrading to version 8.6.1 #6649

Closed
justin-betty opened this issue Jun 6, 2023 · 2 comments
Closed

Comments

@justin-betty
Copy link

pnpm version: 8.6.1

Code to reproduce the issue:

updated from 8.5.1 tot 8.6.1 then run pnpm install

Expected behavior:

No config mismatch

Actual behavior:

 ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile

after removing the section settings in the lock file it works again but this is not what I want to do manually.

Additional information:

  • node -v prints: v16.4.0
  • Windows, macOS, or Linux?: Linux
@zkochan
Copy link
Member

zkochan commented Jun 6, 2023

I assume the lockfile was created with pnpm v7, which has auto-install-peers=false by default. But pnpm v8 has it true by default. If you want to continue using the two different versions of pnpm, then to make it consistent, add a .npmrc in the root of the project with the value that you want. For instance:

auto-install-peers=false

Then update the lockfile.

The lockfile generated with auto-install-peers=false may differ from the one generated with auto-install-peers=true. This is why pnpm checks that the lockfile was created with the expected settings.

@zkochan zkochan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
csr632 added a commit to vitejs/vite-plugin-react-pages that referenced this issue Jun 12, 2023
henryhale added a commit to henryhale/xterminal that referenced this issue Jul 14, 2023
henryhale added a commit to henryhale/xterminal that referenced this issue Jul 14, 2023
* chore: update changelog generator

* chore: use pnpm to run auto-changelog from store

* fix: ci error with a change in pnpm version

Similar Issue: pnpm/pnpm#6649

* ci: support pnpm version 8 with the right lockfile config
kaisergeX added a commit to kaisergeX/note-next that referenced this issue Jul 26, 2023
kaisergeX added a commit to kaisergeX/note-next that referenced this issue Jul 26, 2023
SelfhostedPro added a commit to SelfhostedPro/medicat-website that referenced this issue Jul 26, 2023
wridgeu added a commit to wridgeu/github_pages that referenced this issue Jul 27, 2023
unspezifisch added a commit to unspezifisch/rueder that referenced this issue Aug 5, 2023
Teakowa added a commit to Teakowa/setup-serverless that referenced this issue Aug 5, 2023
ref: pnpm/pnpm#6649 (comment)

Signed-off-by: Teakowa <27560638+Teakowa@users.noreply.github.com>
kolaczyn pushed a commit to kolaczyn/boards-discord that referenced this issue Aug 15, 2023
mtsgrd added a commit to gitbutlerapp/gitbutler that referenced this issue Aug 16, 2023
CI currently fails with a mention about the lockfile
setting settings.autoInstallPeers

Read more here: pnpm/pnpm#6649
mtsgrd added a commit to gitbutlerapp/gitbutler that referenced this issue Aug 16, 2023
CI currently fails with a mention about the lockfile
setting settings.autoInstallPeers

Read more here: pnpm/pnpm#6649
Animeshz added a commit to Animeshz/site that referenced this issue Oct 2, 2023
Animeshz added a commit to Animeshz/site that referenced this issue Oct 2, 2023
pro125101 added a commit to pro125101/vite-react-pages that referenced this issue Oct 30, 2023
PScoriae added a commit to shuttleday/shuttleday that referenced this issue Nov 19, 2023
guitarrapc added a commit to guitarrapc/blog.guitarrapc.com that referenced this issue Jan 21, 2024
guitarrapc added a commit to guitarrapc/blog.guitarrapc.com that referenced this issue Jan 21, 2024
rauenzi added a commit to BetterDiscord/BetterDiscord that referenced this issue Feb 26, 2024
EnigmaGlimmer added a commit to EnigmaGlimmer/vite_react that referenced this issue Feb 28, 2024
L2HYUNN added a commit to L2HYUNN/frontend-info that referenced this issue Feb 29, 2024
L2HYUNN added a commit to L2HYUNN/frontend-info that referenced this issue Feb 29, 2024
bozzhik added a commit to bozzhik/is-mobile that referenced this issue Apr 4, 2024
@halostatue
Copy link

For macOS users affected by this who have upgraded through various versions but cannot find the source of the auto-install-peers=false, check ~/Library/Preferences/pnpm/rc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants