Skip to content

Commit

Permalink
docs(installation.md): warn about different package manager versions
Browse files Browse the repository at this point in the history
document potential issue when multiple versions of pnpm are installed while using corepack

closes pnpm#640
  • Loading branch information
jpbnetley committed Feb 14, 2025
1 parent 6589629 commit 8b26325
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ corepack use pnpm@latest-10

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.

:::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).

:::

## Using other package managers

### Using npm
Expand Down

0 comments on commit 8b26325

Please sign in to comment.