Skip to content

Commit cfc0daa

Browse files
authored
docs: add Node.js versions for corepack prepare yarn@stable (#4850)
1 parent bfaa4a9 commit cfc0daa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/gatsby/content/getting-started/install.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,22 @@ Corepack isn't included with Node.js in versions before the 16.10; to address th
2626
npm i -g corepack
2727
```
2828

29-
## Activate Yarn
29+
## Updating the global Yarn version
30+
31+
### Node.js ^16.17 or >=18.6
3032

3133
```bash
3234
corepack prepare yarn@stable --activate
3335
```
3436

37+
### Node.js <16.17 or <18.6
38+
39+
Take a look at the [latest Yarn release](https://github.com/yarnpkg/berry/releases/latest), note the version number, and run:
40+
41+
```bash
42+
corepack prepare yarn@<version> --activate
43+
```
44+
3545
## Initializing your project
3646

3747
Just run the following command. It will generate some files inside your current directory; add them all to your next commit, and you'll be done!

0 commit comments

Comments
 (0)