-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
pnpm install --ignore-package-manager-version #7956
Description
Contribution
- I'd be willing to implement this feature (contributing guide)
Describe the user story
As a developer who maintain dependencies for many projects (company and open source), I often switch between repositories that do have different "packageManager" values declared.
But now I encounter errors like ERR_PNPM_BAD_PM_VERSION This project is configured to use v9.0.1 of pnpm. Your current pnpm is v9.0.2 where there is even only a bugfix inside pnpm and no behavior of building up node_modules or pnpm-lock.yaml has changed.
- I do not use corepack
- I have multiple computers (Arch Linux with pacman, Mac Pro with homebrew) where the pnpm version is not always the newest or in sync with each other
Describe the solution you'd like
v9.0.0 of pnpm shipped with a new "feature" pnpm will now check the package.json file for a packageManager field.
I would like to either bypass this behavior or at least pnpm should e.g. check semver range compatibility or e.g. the pnpm-lock.yaml's lockfileVersion.
Describe the drawbacks of your solution
It wont be strict anymore like on v9.0.0, so I would be okay if it needs to be explicitly bypassed via CLI flag or .npmrc setting
Describe alternatives you've considered
Different ways already described above.