From 86b09af7dd26ef6ae8c7a7ae4285e7168f9ed476 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..c54e6a69bf9d 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, preferLocal: false, reject: false}; const result = spawnSync(cmd.split(/\s/)[0], args, spawnOptions) as RunResult; // For compat with cross-spawn