diff --git a/plugins.js b/plugins.js index 3c2510b2..f2b16035 100644 --- a/plugins.js +++ b/plugins.js @@ -193,6 +193,9 @@ function install (fn) { shellEnv().then((env) => { let registry = exports.getDecoratedConfig().npmRegistry; if (registry) env.NPM_CONFIG_REGISTRY = registry; + env.npm_config_runtime = 'electron'; + env.npm_config_target = require('./package.json').devDependencies['electron-prebuilt']; + env.npm_config_disturl = 'https://atom.io/download/atom-shell'; exec('npm prune && npm install --production', { cwd: path, env: env