JSPM

  • Created
  • Published
  • Downloads 8529538
  • Score
    100M100P100Q222258F
  • License MIT

A command line tool for easily install prebuilds for multiple version of node/iojs on a specific platform

Package Exports

  • prebuild-install
  • prebuild-install/download
  • prebuild-install/rc
  • prebuild-install/util

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prebuild-install) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

prebuild-install

Build Status js-standard-style

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.

Usage

Change your package.json install script to:

...
  "scripts": {
    "install": "prebuild-install || node-gyp rebuild"
  }
...

Requirements

You need to provide prebuilds made by prebuild

Help

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.

Custom binaries

The end user can override binary download location through environment variables in their .npmrc file.
The variable needs to meet the mask % your package name %_binary_host or % your package name %_binary_host_mirror. For example:

leveldown_binary_host=http://overriden-host.com/overriden-path

Note that the package version subpath and file name will still be appended.
So if you are installing leveldown@1.2.3 the resulting url will be:

http://overriden-host.com/overriden-path/v1.2.3/leveldown-v1.2.3-node-v57-win32-x64.tar.gz

License

MIT