Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions packages/docusaurus/docs/getting-started/extra/corepack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ Corepack is marked experimental so we can iterate on its CLI faster, but it's al

## Installation

Corepack is included with all official Node.js releases starting from Node.js 14.19 / 16.9. It's however opt-in for the duration of the experimental stage, so you'll need to run `corepack enable` before it's active.
To install and enable Corepack use:

You can quickly check whether Corepack is enabled by running `yarn exec env | grep COREPACK_ROOT`: if you get a path as output, Corepack is properly installed. If not, something may be messing with how the shims are installed. In that case check the [Troubleshooting](/corepack#troubleshooting) section for advices.
```
npm install -g corepack
```

Alternatively, Corepack is included in supported Node.js versions lower than Node.js 25.0.0. Run `corepack enable` to activate it.

You can quickly check whether Corepack is enabled by running `yarn exec env | grep COREPACK_ROOT`: if you get a path as output, Corepack is properly installed. If not, something may be messing with how the shims are installed. In that case check the [Troubleshooting](/corepack#troubleshooting) section for advice.

:::danger
Some third-party distributors may not include Corepack by default, in particular if you install Node.js from your system package manager. If that happens, running `npm install -g corepack` before `corepack enable` should do the trick.
Some third-party distributors may not include Corepack by default, in particular if you install Node.js from your operating system package manager. If that happens, running `npm install -g corepack` should do the trick.
:::

## Troubleshooting
Expand Down
Loading