Skip to content

Precompiled versions

Eugene Lazutkin edited this page Mar 24, 2026 · 10 revisions

This project is a C++ addon built with NAN and node-gyp. At install time, a precompiled artifact is downloaded via install-artifact-from-github. If you have problems or want to bypass the download, see its wiki.

Precompiled artifacts are a convenience — they are not guaranteed for every configuration. Be prepared to compile locally. Make sure all node-gyp dependencies are installed.

Opting out from using pre-compiled versions

To skip the precompiled download and build locally, set DEVELOPMENT_SKIP_GETTING_ASSET to any non-empty value:

DEVELOPMENT_SKIP_GETTING_ASSET=yes npm install

Supported pre-compiled versions

Builds are provided for Node versions with active security support. See https://endoflife.date/nodejs for the current list.

Details:

  • Build matrix: build.yml.
  • Build environments: actions (different distros may be used for broader compatibility).
  • Artifacts: releases.

Private mirrors

Copy existing artifacts from a release or build them yourself. See making local mirrors for details.

The following re2-specific environment variables are used:

Command-line arg Value
--host-var RE2_DOWNLOAD_MIRROR
--skip-path-var RE2_DOWNLOAD_SKIP_PATH
--skip-ver-var RE2_DOWNLOAD_SKIP_VER

Example:

RE2_DOWNLOAD_MIRROR=https://local.mirror/vendors/re2 RE2_DOWNLOAD_SKIP_PATH=1 npm i

Clone this wiki locally