Skip to content

Commit 5e3be66

Browse files
committed
docs: add deprecated commands to README
1 parent 679bcef commit 5e3be66

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,19 @@ range specified in `devEngines.packageManager.version`, or fallback to the
279279
same major line. Should you need to upgrade to a new major, use an explicit
280280
`corepack use {name}@latest` call (or simply `corepack use {name}`).
281281

282+
## Utility Commands (deprecated)
283+
284+
The utility commands `corepack hydrate` and `corepack prepare` were deprecated with [corepack@0.20.0](https://github.com/nodejs/corepack/releases/tag/v0.20.0).
285+
It is recommended to use the replacement commands as shown in the following table:
286+
287+
| Deprecated command | Replacement command |
288+
| ------------------------------------------------- | ------------------------------------------------------ |
289+
| `corepack hydrate path/to/archive.tgz` | `corepack install -g --cache-only path/to/archive.tgz` |
290+
| `corepack hydrate path/to/archive.tgz --activate` | `corepack install -g path/to/archive.tgz` |
291+
| `corepack prepare foo@1.2.3` | `corepack install -g --cache-only foo@1.2.3` |
292+
| `corepack prepare foo@1.2.3 --activate` | `corepack install -g foo@1.2.3` |
293+
| `corepack prepare -o ...` | `corepack pack -o ...` |
294+
282295
## Environment Variables
283296

284297
- `COREPACK_DEFAULT_TO_LATEST` can be set to `0` in order to instruct Corepack

0 commit comments

Comments
 (0)