Skip to content

Commit

Permalink
fix: do not use --no-bin-links by default due to npm bug
Browse files Browse the repository at this point in the history
Closes #869
  • Loading branch information
develar committed Nov 4, 2016
1 parent 9e18cb1 commit 7ab1ba1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export function spawnNpmProduction(command: string, appDir: string, forceBuildFr
const npmExecArgs = [command, "--production"]

if (npmExecPath == null || !npmExecPath.includes("yarn")) {
npmExecArgs.push("--no-bin-links", "--cache-min", "999999999")
if (process.env.NPM_NO_BIN_LINKS === "true") {
npmExecArgs.push("--no-bin-links")
}
npmExecArgs.push("--cache-min", "999999999")
}

if (npmExecPath == null) {
Expand Down

0 comments on commit 7ab1ba1

Please sign in to comment.