Skip to content

Commit 8c69da8

Browse files
mrienstradanielleadams
authored andcommitted
doc: mention corepack prepare supports tag or range
`corepack prepare pnpm@latest --activate` is a useful alternative to `corepack prepare [email protected] --activate`. PR-URL: #44646 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]>
1 parent 11d1c23 commit 8c69da8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/api/corepack.md

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ package manager version you wish to set:
6464
corepack prepare [email protected] --activate
6565
```
6666

67+
Alternately, a tag or range may be used:
68+
69+
```bash
70+
corepack prepare pnpm@latest --activate
71+
corepack prepare yarn@stable --activate
72+
```
73+
6774
### Offline workflow
6875

6976
Many production environments don't have network access. Since Corepack

0 commit comments

Comments
 (0)