Skip to content

[DOCS] rebuild command needs new description #6453

@rotu

Description

@rotu

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • This is a CLI 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

Metadata

Metadata

Assignees

Labels

Documentationdocumentation related issuePriority 2secondary priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions