for now, pin npm_config_target version as it falls outside of the distribution package

This commit is contained in:
Guillermo Rauch 2016-07-25 10:30:20 -07:00
parent 6267899a27
commit cb84548623

View file

@ -201,7 +201,7 @@ function install (fn) {
let registry = exports.getDecoratedConfig().npmRegistry; let registry = exports.getDecoratedConfig().npmRegistry;
if (registry) env.NPM_CONFIG_REGISTRY = registry; if (registry) env.NPM_CONFIG_REGISTRY = registry;
env.npm_config_runtime = 'electron'; env.npm_config_runtime = 'electron';
env.npm_config_target = require('./package.json').devDependencies['electron-prebuilt']; env.npm_config_target = '1.2.8';
env.npm_config_disturl = 'https://atom.io/download/atom-shell'; env.npm_config_disturl = 'https://atom.io/download/atom-shell';
exec('npm prune && npm install --ignore-scripts --production', { exec('npm prune && npm install --ignore-scripts --production', {
cwd: path, cwd: path,