|
7 éve | |
---|---|---|
.. | ||
.travis.yml | 7 éve | |
CONTRIBUTING.md | 7 éve | |
LICENSE | 7 éve | |
README.md | 7 éve | |
bin.js | 7 éve | |
download.js | 7 éve | |
error.js | 7 éve | |
help.txt | 7 éve | |
index.js | 7 éve | |
package.json | 7 éve | |
rc.js | 7 éve | |
util.js | 7 éve |
A command line tool for easily install prebuilds for multiple version of node/iojs on a specific platform.
prebuild-install
supports installing prebuilt binaries from GitHub by default.
Change your package.json install script to:
...
"scripts": {
"install": "prebuild-install || node-gyp rebuild"
}
...
You need to provide prebuilds made by prebuild
prebuild-install [options]
--download -d [url] (download prebuilds, no url means github)
--target -t version (version to install for)
--runtime -r runtime (Node runtime [node or electron] to build or install for, default is node)
--path -p path (make a prebuild-install here)
--build-from-source (skip prebuild download)
--verbose (log verbosely)
--libc (use provided libc rather than system default)
--debug (set Debug or Release configuration)
--version (print prebuild-install version and exit)
When prebuild-install
is run via an npm
script, options
--build-from-source
, --debug
and --download
, may be passed through via
arguments given to the npm
command.
MIT