Skip to content

Commit

Permalink
fix: pass --build-from-source to force native dep compilation
Browse files Browse the repository at this point in the history
Closes #647
  • Loading branch information
develar committed Aug 20, 2016
1 parent 834434c commit ef5f146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function installDependencies(appDir: string, electronVersion: string, arc

export function spawnNpmProduction(command: string, appDir: string, env?: any): BluebirdPromise<any> {
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"
}
Expand Down

0 comments on commit ef5f146

Please sign in to comment.