From aa04351122e7386be22523bcb63ea811316a7a0c Mon Sep 17 00:00:00 2001 From: osyrisrblx Date: Mon, 16 Oct 2023 20:25:45 -0400 Subject: [PATCH] Use spawn() shell setting --- src/commands/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index 4f8956d..cb6d6b6 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -66,7 +66,7 @@ const packageManagerCommands: { function cmd(cmdStr: string, cwd: string) { return new Promise((resolve, reject) => { const [command, ...args] = cmdStr.split(" "); - const childProcess = spawn(command, args, { cwd }); + const childProcess = spawn(command, args, { cwd, shell: true }); let output = ""; childProcess.stdout.on("data", data => (output += data)); childProcess.stderr.on("data", data => (output += data));