-
-
Notifications
You must be signed in to change notification settings - Fork 225
Description
Issue
-
The following commands are hidden since PR Refactoring of the CLI interface #291 implemented RFC: New command names (and alias the old ones) #274 in release [email protected]:
corepack hydrate
corepack prepare
These commands:
- are not documented in the README
- have no migration guide to their replacement commands
- do not appear in the output of
corepack --help
- are described in the output of
corepack hydrate --help
andcorepack prepare --help
- neither their usage, nor their help text indicates that the commands are deprecated
Several issues lately have shown users reporting problems when executing corepack prepare
.
Edit: Node.js 18 is now in end-of-life status, so documentation should no longer be referred to. (Node.js v20, corepack prepare
is listed as a valid command in Node.js documentation Corepack latest v18v22 & v23 describes instead corepack use
/ corepack install
. Edit: v22 and v24 documentation now have no detailed content.)
Suggestion
- Describe the above commands as deprecated and either add
thea migration tablefrom RFC: New command names (and alias the old ones) #274to the README or create a separate Migration Guide document. Edit: the migration table in the PR contains inaccuracies and cannot be used as it stands. - Extend the help text for the commands to indicate that they are deprecated.
- Output a deprecation warning if deprecated commands are used.
Also review Node.js documentation Corepack latest v18 and initiate an update if possible. Edit: Node.js 18 has passed into end-of-life status, so all related assets are now frozen.
Related Node.js documentation
- Node.js 18 Corepack (Node.js 18 is end-of-life)
- Node.js 20 Corepack
- Node.js 22 Corepack
- Node.js 24 Corepack
- Node.js latest Corepack