https://github.com/electron/chromedriver
Download ChromeDriver for Electron
https://github.com/electron/chromedriver
Last synced: about 1 month ago
JSON representation
Download ChromeDriver for Electron
- Host: GitHub
- URL: https://github.com/electron/chromedriver
- Owner: electron
- License: mit
- Created: 2015-10-11T18:52:47.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2026-05-08T20:56:47.000Z (about 2 months ago)
- Last Synced: 2026-05-08T21:05:13.382Z (about 2 months ago)
- Language: JavaScript
- Size: 1.42 MB
- Stars: 143
- Watchers: 16
- Forks: 62
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Electron ChromeDriver
[](https://github.com/electron/chromedriver/actions/workflows/test.yml)
[](https://www.npmjs.com/package/electron-chromedriver)
[](https://standardjs.com/)
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/electron-chromedriver)
Simple node module to download the [ChromeDriver](https://sites.google.com/corp/chromium.org/driver/)
version for [Electron](https://electronjs.org).
The major version of this library tracks the major version of the Electron
versions released. So if you are using Electron `2.0.x` you would want to use
an `electron-chromedriver` dependency of `~2.0.0` in your `package.json` file.
This library is used by [spectron](https://github.com/electron/spectron).
## Using
```sh
npm install --save-dev electron-chromedriver
chromedriver -h
```
## Custom Mirror
You can set the `ELECTRON_MIRROR` or [`NPM_CONFIG_ELECTRON_MIRROR`](https://docs.npmjs.com/misc/config#environment-variables)
environment variables to use a custom base URL for downloading ChromeDriver zips.
```sh
# Electron mirror for China
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
# Local mirror
# Example of requested URL: http://localhost:8080/1.2.0/chromedriver-v2.21-darwin-x64.zip
ELECTRON_MIRROR="http://localhost:8080/"
```
## Overriding the version downloaded
The version downloaded can be overriden by setting the `ELECTRON_CUSTOM_VERSION` environment variable.