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.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid