From ef5f146c6b509dfcd2f78b44313de9009a234205 Mon Sep 17 00:00:00 2001 From: develar Date: Sat, 20 Aug 2016 18:49:14 +0200 Subject: [PATCH] fix: pass --build-from-source to force native dep compilation Closes #647 --- src/util/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.ts b/src/util/util.ts index a34792fe807..de3a09ef1c0 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -31,7 +31,7 @@ export function installDependencies(appDir: string, electronVersion: string, arc export function spawnNpmProduction(command: string, appDir: string, env?: any): BluebirdPromise { let npmExecPath = process.env.npm_execpath || process.env.NPM_CLI_JS - const npmExecArgs = [command, "--production", "--cache-min", "999999999"] + const npmExecArgs = [command, "--production", "--build-from-source", "--cache-min", "999999999"] if (npmExecPath == null) { npmExecPath = process.platform === "win32" ? "npm.cmd" : "npm" }