Skip to content

Commit

Permalink
doc: mention corepack prepare supports tag or range
Browse files Browse the repository at this point in the history
`corepack prepare pnpm@latest --activate` is a useful alternative to
`corepack prepare pnpm@x.y.z --activate`.

PR-URL: #44646
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
  • Loading branch information
mrienstra authored and danielleadams committed Oct 11, 2022
1 parent 11d1c23 commit 8c69da8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/api/corepack.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ package manager version you wish to set:
corepack prepare yarn@x.y.z --activate
```

Alternately, a tag or range may be used:

```bash
corepack prepare pnpm@latest --activate
corepack prepare yarn@stable --activate
```

### Offline workflow

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

0 comments on commit 8c69da8

Please sign in to comment.