Skip to content

docs: caveats of multiple package managers #640

Open
@jpbnetley

Description

@jpbnetley

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions