LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-rb

Rebuild packages with native addons

TLDR

Rebuild all packages
$ npm rb
copy
Rebuild specific package
$ npm rb [package-name]
copy
Rebuild global packages
$ npm rb -g
copy
Rebuild multiple specific packages
$ npm rb [package1] [package2]
copy

SYNOPSIS

npm rb [packages]

DESCRIPTION

npm rb is an alias for npm rebuild. It recompiles native addon modules (C/C++ bindings) using node-gyp.Commonly needed after upgrading Node.js versions, as native addons are compiled against a specific Node.js ABI. Also useful after manually modifying a package's source code in node_modules.

PARAMETERS

PACKAGES

Packages to rebuild.
-g
Rebuild global packages.
--help
Display help information.

CAVEATS

Alias for npm rebuild. Requires build tools (make, gcc/g++ or equivalent) to be installed. Only affects packages with native addons; pure JavaScript packages are unaffected.

SEE ALSO

Copied to clipboard
Kai