-
Notifications
You must be signed in to change notification settings - Fork 173
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
package.json keeps my pnpm version artificially old #587
Comments
That's literally the point of Corepack. It uses the version configured for a given project, not whatever random version happens to be globally installed. The binary you see is not the final one. The final ones are in So if you want to upgrade pnpm, just do what pnpm says; it'll upgrade the |
What's really strange / related is that this is not acting like a proper binary file, somehow this file:
has multiple versions. But maybe it's per design. The core issue is the upgrade command not upgrading the package.json field. |
Corepack will by default use the version defined on the |
So |
Here is a DEBUG run
|
ok, if I understand correctly, we should show a different message when there's a packageManager field in the |
That also doesn't work:
|
I think it's supposed to be either |
I opened this issue in pnpm but it seems it's more related to corepack.
https://github.com/orgs/pnpm/discussions/8911#discussioncomment-11674247
Copying it here:
pnpm i
"packageManager": "[email protected]+sha512...."
lineBy "doesn't get updated" I mean that even though I've updated my pnpm to the latest version, when I go inside that directory, it reports it as 9.10, not as 9.15.
Even though I'm running on the very same binary file!
Outside the project repo:
Inside the project repo:
This is extremely buggy / confusing like this. How can the same binary file have multiple versions?
The text was updated successfully, but these errors were encountered: