A gulp.js plugin to help download electron.
Last updated 3 years ago by smebberson .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-electron-downloader 
SYNC missed versions from official npm registry.


A gulp.js plugin to download electron. Super simple, it will simply download (and cache) and extract to a directory of your choice. You can run with zero-configuration, and use the defaults. Or configure as you wish.

This plugin makes it really easy to get any electron binary you need, where as most others only download electron for the platform for the host.

If you're wanting to build an electron release, you'll need another plugin for that.


Install gulp plugin package:

npm install --save-dev gulp-electron-downloader


The most simple is the following:

var gulp = require('gulp');
var electronDownloader = require('gulp-electron-downloader');

gulp.task('download-electron', function(cb){



gulp.task('default', ['download-electron']);

This will download the latest release of electron, matching the platform and architecture of the host. The ./electron/cache folder will be used to store downloads, and the final output will end up ./electron/binaries.

The plugin makes unauthenticated requests to GitHub API. If you get rate-limit errors, use your own token by setting the env var GITHUB_OAUTH_TOKEN.


electronDownloader([options], callback)


You can customise what is downloaded with the following:

  • version - the version of electron you want to download. This defaults to the latest release.
  • platform - the platform you want to download. Choices are darwin, mas, win32, linux. This defaults to the host platform.
  • arch - the architecture of the platform you want to download. This defaults to the host architecture.
  • cacheDir - the location of the caching directory in which downloads will be stored. This defaults to ./electron/cache.
  • outputDir - the location of the unzipped binary. This defaults to ./electron/binaries/platform-arch/.
  • downloadMirror - a function that provided the official electron download URL for a particular version, returns a URL to a mirror of your choice. An example for China:
downloadMirror: function (downloadUrl) {
    return downloadUrl.replace('', '');

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

8 Versions

  • 1.0.0                                ...           3 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |