You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set "packageManager": "pnpm@9.1.1" in my project while having pnpm 9.1.0 installed and got:
$ pnpm install
ERR_PNPM_BAD_PM_VERSION This project is configured to use v9.x of pnpm. Your current pnpm is v9.1.0
If you want to bypass this version check, you can set the "package-manager-strict" configuration to "false" or set the "COREPACK_ENABLE_STRICT" environment variable to "0"
But it doesn't tell me how to upgrade my pnpm version, which would be the other solution.
Describe the solution you'd like
The upgrade box should be printed still so that I can reference how to upgrade:
An alternative and preferable solution would be to stop enforcing package-manager-strict similar to how pnpm 8 worked or make package-manager-strict=false the default. See #8087 for that
Describe the drawbacks of your solution
No drawbacks to printing the upgrade instructions
Changing to package-manager-strict=false would have more trade-offs
Describe alternatives you've considered
It would also be helpful to have docs describing how this stuff is supposed to interact. I have to put the packageManager field in my package.json in order to deploy on Netlify, but it's become a hugely massive pain now for developing locally since the latest major version of pnpm
The text was updated successfully, but these errors were encountered:
It would also be helpful to have docs describing how this stuff is supposed to interact. I have to put the packageManager field in my package.json in order to deploy on Netlify, but it's become a hugely massive pain now for developing locally since the latest major version of pnpm
I guess you could put package-manager-strict=false in the root .npmrc of your project. It wouldn't matter to Netlify I suppose.
Contribution
Describe the user story
I set
"packageManager": "pnpm@9.1.1"
in my project while having pnpm 9.1.0 installed and got:But it doesn't tell me how to upgrade my pnpm version, which would be the other solution.
Describe the solution you'd like
The upgrade box should be printed still so that I can reference how to upgrade:
An alternative and preferable solution would be to stop enforcing
package-manager-strict
similar to how pnpm 8 worked or makepackage-manager-strict=false
the default. See #8087 for thatDescribe the drawbacks of your solution
No drawbacks to printing the upgrade instructions
Changing to
package-manager-strict=false
would have more trade-offsDescribe alternatives you've considered
It would also be helpful to have docs describing how this stuff is supposed to interact. I have to put the
packageManager
field in mypackage.json
in order to deploy on Netlify, but it's become a hugely massive pain now for developing locally since the latest major version of pnpmThe text was updated successfully, but these errors were encountered: