Skip to content

Commit 082357f

Browse files
authored
Update install.mdx
1 parent 1820465 commit 082357f

File tree

1 file changed

+4
-6
lines changed
  • packages/docusaurus/docs/getting-started/basics

1 file changed

+4
-6
lines changed

packages/docusaurus/docs/getting-started/basics/install.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ description: Yarn's in-depth installation guide.
66
sidebar_position: 2
77
---
88

9-
:::tip
10-
The preferred way to manage Yarn is by-project and through [Corepack](/corepack), a tool shipped by default with Node.js. Modern releases of Yarn aren't meant to be installed globally, or from npm.
11-
:::
12-
13-
1. Start by enabling [Corepack](/corepack), if it isn't already; this will add the `yarn` binary to your PATH:
9+
1. Install [Corepack](/corepack), an intermediary tool that will let you configure your package manager version on a per-project basis:
1410

15-
<CommandLineHighlight type={`code`} lines={[{type: `command`, command: {name: `corepack`, path: [`enable`], argv: [`enable`]}, split: false, tooltip: null, tokens: [{type: `path`, segmentIndex: 0, text: `enable`}]}]}/>
11+
```
12+
npm install -g corepack
13+
```
1614

1715
2. Then initialize a new project:
1816

0 commit comments

Comments
 (0)