DOKK / manpages / debian 11 / npm / npm-rebuild.1.en
NPM-REBUILD(1) NPM-REBUILD(1)

npm-rebuild - Rebuild a package

npm rebuild [[<@scope>/]<name>[@<version>] ...]
alias: rb

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 names (and optionally version ranges) are provided, then only packages with a name and version matching one of the specifiers will be rebuilt.

npm help install

undefined NaN