From 8b26325bce5dc3d44a60c634ee7946f7a63daace Mon Sep 17 00:00:00 2001 From: Jonathan Netley Date: Fri, 14 Feb 2025 22:19:01 +0200 Subject: [PATCH] docs(installation.md): warn about different package manager versions document potential issue when multiple versions of pnpm are installed while using corepack closes #640 --- docs/installation.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 58b6177d287b..1b948281e169 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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