From 7ab1ba1a37ea2b60ab57804c32a7201a42f50620 Mon Sep 17 00:00:00 2001 From: develar Date: Fri, 4 Nov 2016 07:07:06 +0100 Subject: [PATCH] fix: do not use --no-bin-links by default due to npm bug Closes #869 --- src/util/util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/util.ts b/src/util/util.ts index c0805cb1800..4730ac26c0a 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -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) {