Skip to content

corepack not installed by default with Homebrew #55366

@karlhorky

Description

@karlhorky

Version

v22.9.0

Platform

Darwin Karls-MBP.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 arm64

Subsystem

No response

What steps will reproduce the bug?

  1. brew install node@22 (on macOS, with @22 version specifier recommended on download page, screenshot below)
  2. corepack enable (as in the Corepack docs page)
  3. 💥 zsh: command not found: corepack

Screenshot 2024-10-12 at 16 00 30

This also reproduces with no version specifier (brew install node)

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

corepack is installed and on PATH

What do you see instead?

corepack is not installed

Additional information

Encountering this bug, I thought that the decision had been made to remove Corepack from Node.js, as is being discussed in various PRs and issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    wrong repoIssues that should be opened in another repository.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions