Skip to content

global install of Corepack should not enable Corepack #697

Open
@MikeMcC399

Description

@MikeMcC399

What would you like?

When Corepack is installed from the npm registry with

npm install -g corepack

then Corepack should not be automatically enabled for pnpm and Yarn.

Why is this needed?

In a situation where Corepack is needed for Yarn and not wanted for pnpm, automatically enabling Corepack for pnpm breaks local workflows that expect pnpm to have been installed with npm install -g pnpm. Installing Corepack overrides this. Due to #112 it is not possible to simply execute corepack disable pnpm because Corepack does not restore the original state.

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