From 1cd24753ef80fe2a6bce04594ed163ad4118160f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Sat, 9 Mar 2019 19:45:24 +0000 Subject: [PATCH] Stops execa from "preferLocal" --- e2e/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/Utils.ts b/e2e/Utils.ts index 1f5daba040ce..1b8022754970 100644 --- a/e2e/Utils.ts +++ b/e2e/Utils.ts @@ -20,7 +20,7 @@ export type RunResult = ExecaReturns & { }; export const run = (cmd: string, cwd?: Config.Path): RunResult => { const args = cmd.split(/\s/).slice(1); - const spawnOptions = {cwd, reject: false}; + const spawnOptions = {cwd, shell: true, reject: false, preferLocal: false}; const result = spawnSync(cmd.split(/\s/)[0], args, spawnOptions) as RunResult; // For compat with cross-spawn