From 21a5be52960dd0093a5f24f98c33fe391d25c639 Mon Sep 17 00:00:00 2001 From: develar Date: Tue, 6 Jun 2017 19:06:26 +0200 Subject: [PATCH] fix: install-app-deps Close #1626 --- packages/electron-builder/src/yarn.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/electron-builder/src/yarn.ts b/packages/electron-builder/src/yarn.ts index 924522cf81d..e304934b2a7 100644 --- a/packages/electron-builder/src/yarn.ts +++ b/packages/electron-builder/src/yarn.ts @@ -56,6 +56,8 @@ function installDependencies(appDir: string, frameworkInfo: DesktopFrameworkInfo const execArgs = ["install", "--production"] const isYarn = isYarnPath(execPath) + // must be first https://github.com/electron-userland/electron-builder/issues/1626 + execArgs.push("--devdir", getElectronGypCacheDir()) if (!isYarn) { if (process.env.NPM_NO_BIN_LINKS === "true") { execArgs.push("--no-bin-links") @@ -63,8 +65,6 @@ function installDependencies(appDir: string, frameworkInfo: DesktopFrameworkInfo execArgs.push("--cache-min", "999999999") } - execArgs.push("--devdir", getElectronGypCacheDir()) - if (execPath == null) { execPath = getPackageToolPath() }