From a9f45b07767918d84d3fb1ba9aeba82cd1cd00f9 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Tue, 6 Oct 2015 23:40:35 -0400 Subject: [PATCH] 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. --- script/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bootstrap b/script/bootstrap index 5ecf2b06f..e4ddeeffd 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -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();