Skip to content

Commit 8b26325

Browse files
committed
docs(installation.md): warn about different package manager versions
document potential issue when multiple versions of pnpm are installed while using corepack closes pnpm#640
1 parent 6589629 commit 8b26325

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/installation.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ corepack use pnpm@latest-10
9494

9595
This will add a `"packageManager"` field in your local `package.json` which will instruct Corepack to always use a specific version on that project. This can be useful if you want reproducability, as all developers who are using Corepack will use the same version as you. When a new version of pnpm is released, you can re-run the above command.
9696

97+
:::warning
98+
99+
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.
100+
101+
To verify there are not multiple version installed, see this [corepack issue 659](https://github.com/nodejs/corepack/issues/659#issuecomment-2658982866).
102+
103+
:::
104+
97105
## Using other package managers
98106

99107
### Using npm

0 commit comments

Comments
 (0)