Open
Description
I had an issue where pnpm was installed with corepack, but I would have a version mismatch when comparing the package manager in the package.json and the pnpm version in the terminal.
I created an issue with corepack: nodejs/corepack#659
After some debugging, we determined that I had 2 versions of pnpm installed.
One via corepack, and another via globally from npm.
See here as reference: nodejs/corepack#659 (comment)
I was then suggested to maybe add documentation to warn against this odd behaviour here: nodejs/corepack#659 (comment)
I am considering adding some information regarding this here: https://github.com/pnpm/pnpm.io/blob/main/docs/installation.md
on line 97.
:::warning
Having multiple package manager versions installed can cause an incorrect version of a package manager being used, regardless of the version that is specified in the package.json.
To verify there are not multiple version installed, see this [corepack issue 659](https://github.com/nodejs/corepack/issues/659#issuecomment-2658982866).
:::
Metadata
Metadata
Assignees
Labels
No labels