Socket
Socket
Sign inDemoInstall

prebuild-install

Package Overview
Dependencies
11
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

prebuild-install


Version published
Maintainers
2
Install size
641 kB
Created

Package description

What is prebuild-install?

The prebuild-install npm package is used to install prebuilt binaries for Node.js modules, if available, before falling back to building from source. This can significantly speed up installation times and avoid the need for a full development environment with build tools like gcc or Visual Studio.

What are prebuild-install's main functionalities?

Installing prebuilt binaries

Automatically downloads and installs prebuilt binaries for a module if they are available for the current platform and Node.js version. If prebuilt binaries are not available, it will fall back to building from source.

npm install --save <module-name>

Custom binary hosting

Allows specifying custom hosting URLs and tag prefixes for prebuilt binaries, enabling the use of private or alternative binary hosting solutions.

npm install --build-from-source --prebuild-tag-prefix="<custom-prefix>-" --prebuild-download="<custom-hosting-url>"

Skipping prebuilt binary download

Forces the installation process to compile the module from source, bypassing the download of prebuilt binaries.

npm install --build-from-source

Other packages similar to prebuild-install

Readme

Source

prebuild-install Build Status

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 -d || 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)
  --no-prebuild                 (skip prebuild download)
  --path        -p  path        (make a prebuild-install here)
  --debug                       (set Debug or Release configuration)
  --verbose                     (log verbosely)
  --version                     (print prebuild-install version and exit)

License

MIT

Keywords

FAQs

Last updated on 28 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc