Target node version used by APM 1.1.1 and Electron 0.30.7

node-gyp header layout change in node v4, causes package builds to fail.

This change forces node-gyp to download the correct version of node so
native extensions can be built.
This commit is contained in:
Matt Bilker 2015-10-06 23:40:35 -04:00
parent 96bc0c9f97
commit cab1c9e4ca

View file

@ -66,7 +66,7 @@ function bootstrap() {
var buildInstallCommand = initialNpmCommand + npmFlags + 'install';
var buildInstallOptions = {cwd: path.resolve(__dirname, '..', 'build')};
var apmInstallCommand = npmPath + npmFlags + 'install';
var apmInstallCommand = npmPath + npmFlags + '--target=0.10.40 ' + 'install';
var apmInstallOptions = {cwd: apmInstallPath};
var rebuildSqlite3Command = makeSqlite3Command();