Skip to content

Commit 98e12f9

Browse files
committed
docs: add deprecated commands to README
1 parent aefde28 commit 98e12f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: README.md

+13
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 [[email protected]](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 [email protected]` | `corepack install -g --cache-only [email protected]` |
292+
| `corepack prepare [email protected] --activate` | `corepack install -g [email protected]` |
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)