code: function locateElectronPrebuilt() {
  	var possibleModuleNames = ['electron', 'electron-prebuilt', 'electron-prebuilt-compile'];
    var electronPath = false;
  
    // Attempt to locate modules by path
    var foundModule = possibleModuleNames.some(function (moduleName) {
      electronPath = path.join(__dirname, '..', '..', moduleName);
      return fs.existsSync(electronPath);
    });
  
    // Return a path if we found one
    if (foundModule) return electronPath;
  
    // Attempt to locate modules by require
    foundModule = possibleModuleNames.some(function (moduleName) {
      try {
        electronPath = path.join(require.resolve(moduleName), '..');
      } catch (e) {
        return false;
      }
      return fs.existsSync(electronPath);
    });
  
    // Return a path if we found one
    if (foundModule) return electronPath;
    return null;
  }
docs: based on https://raw.githubusercontent.com/electron/electron-rebuild/master/src/electron-locater.js