InstallOptions interface
Signature
export interface InstallOptions
Properties
|
Property |
Modifiers |
Type |
Description |
Default |
|---|---|---|---|---|
|
baseUrl |
|
string |
Determines the host that will be used for downloading. |
Either |
|
browser |
Determines which browser to install. | |||
|
buildId |
string |
Determines which buildId to download. BuildId should uniquely identify binaries and they are used for caching. | ||
|
buildIdAlias |
|
string |
An alias for the provided | |
|
cacheDir |
string |
Determines the path to download browsers to. | ||
|
downloadProgressCallback |
|
'default' | ((downloadedBytes: number, totalBytes: number) => void) |
Provides information about the progress of the download. If set to 'default', the default callback implementing a progress bar will be used. | |
|
expectedHash |
|
string |
Expected SHA-256 checksum (lowercase hex) of the downloaded browser archive. If provided, installation will fail when the downloaded file does not match. If omitted, the download proceeds without integrity verification. | |
|
installDeps |
|
boolean |
Whether to attempt to install system-level dependencies required for the browser. Only supported for Chrome on Debian or Ubuntu. Requires system-level privileges to run |
|
|
logger |
|
Logger | ||
|
platform |
|
Determines which platform the browser will be suited for. |
Auto-detected. | |
|
providers |
|
Custom provider implementation for alternative download sources. If not provided, uses the default provider. Multiple providers can be chained - they will be tried in order. The default provider is automatically added as the final fallback. ⚠️ IMPORTANT: Custom providers are NOT officially supported by Puppeteer. By using custom providers, you accept full responsibility for:
Puppeteer only tests and guarantees compatibility with default binaries. | ||
|
unpack |
|
boolean |
Whether to unpack and install browser archives. |
|