Is there an existing issue for this?
This is a CLI Docs Problem, not another kind of Docs Problem.
Description of Problem
The docs for npm rebuild command don't explain what it does, but describe it in terms of the defunct npm build command.
This command runs the npm build command on the matched folders. This is useful when you install a new version of node, and must recompile all your C++ addons with the new binary. It is also useful when installing with --ignore-scripts and --no-bin-links, to explicitly choose which packages to build and/or link bins.
If one or more package specs are provided, then only packages with a name and version matching one of the specifiers will be rebuilt.
Potential Solution
Rewrite the docs for npm rebuild to explain what it does (i.e. conditionally run node-gyp, runs certain lifecycle hooks, maybe other things?).
Affected URL
https://docs.npmjs.com/cli/v9/commands/npm-rebuild
Is there an existing issue for this?
This is a CLI Docs Problem, not another kind of Docs Problem.
Description of Problem
The docs for
npm rebuildcommand don't explain what it does, but describe it in terms of the defunctnpm buildcommand.Potential Solution
Rewrite the docs for
npm rebuildto explain what it does (i.e. conditionally runnode-gyp, runs certain lifecycle hooks, maybe other things?).Affected URL
https://docs.npmjs.com/cli/v9/commands/npm-rebuild