-
Notifications
You must be signed in to change notification settings - Fork 81
Updating Available Definitions
node-build inherits its architecture from ruby-build, which has a more complicated process for compiling ruby. As such, node-build relies on the use of definition files to instruct node-build how to build/compile/install a version of node. While this does have its drawbacks, it also enables node-build (and nodenv) to more easily add support for alternative node runtimes (like iojs, lowjs, quickjs, graalvm, chakracore, etc). Thus, in order to install a particular version of node, a definition file for that particular version must exist somewhere for node-build to find.
node-build itself looks in two locations:
-
all the colon-separated paths listed in
NODE_BUILD_DEFINITIONS -
node-build's own installation under
share/node-build/(When installed via Homebrew, this is
$(brew --prefix node-build)/share/node-build/.)
The nodenv-install plugin for nodenv adds additional locations:
- all paths found in
$(nodenv root)/plugins/*/share/node-build