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));