Optional archThe system {@link https://nodejs.org/api/process.html#processarch | `process.arch`} value
Optional buildSkip prebuild download and rebuild module from source.
false
The path to the node_modules directory to rebuild.
Optional Experimental cacheSets a custom cache path for the useCache option.
a .electron-rebuild-cache folder in the os.homedir() directory
Optional debugRebuilds a Debug build of target modules. If this is false, a Release build will be generated instead.
false
Optional disableDisables the copying of .node files if not needed.
false
The version of Electron to build against.
Optional extraAn array of module names to rebuild in addition to detected modules
[]
Optional forceForce a rebuild of modules regardless of their current build state.
Optional forceABIOverride the Application Binary Interface (ABI) version for the version of Electron you are targeting. Only use when targeting nightly releases.
the electron/node-abi repository for a list of Electron and Node.js ABIs
Optional headerURLURL to download Electron header files from.
https://www.electronjs.org/headers
Optional ignoreArray of module names to ignore during the rebuild process.
Optional modeWhether to rebuild modules sequentially or in parallel.
sequential
Optional onlyAn array of module names to rebuild. Only these modules will be rebuilt.
Optional platformOverride the target platform to something other than the host system platform. Note: This only applies to downloading prebuilt binaries. It is not possible to cross-compile native modules.
The system {@link https://nodejs.org/api/process.html#processplatform | `process.platform`} value
Optional prebuildGitHub tag prefix passed to prebuild-install.
v
Optional projectPath to the root of the project if using npm or yarn workspaces.
Optional typesArray of types of dependencies to rebuild. Possible values are prod, dev, and optional.
['prod', 'optional']
Optional Experimental useEnables hash-based caching to speed up local rebuilds.
false
Optional useWhether to use the clang executable that Electron uses when building.
This will guarantee compiler compatibility.
false
Override the target rebuild architecture to something other than the host system architecture.