From 15cf75f319b00779c1e2a06536aad59de2ca6d66 Mon Sep 17 00:00:00 2001 From: Ryan Huang Date: Fri, 26 Apr 2024 14:09:23 -0400 Subject: [PATCH] Fix shell --- src/subcommands/create.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/subcommands/create.ts b/src/subcommands/create.ts index 839fa0e..29872e6 100644 --- a/src/subcommands/create.ts +++ b/src/subcommands/create.ts @@ -275,7 +275,7 @@ async function createWithScaffold(logger: SimpleLogger, scaffold: Scaffold) { const child = spawn( process.platform === "win32" ? "npm.cmd" : "npm", ["pack", `@lmstudio/scaffold-${scaffold.name}@latest`], - { cwd: tempDir }, + { cwd: tempDir, shell: true }, ); child.stdout.on("data", data => { const str = data.toString(); @@ -327,6 +327,7 @@ async function createWithScaffold(logger: SimpleLogger, scaffold: Scaffold) { const child = spawn(process.platform === "win32" ? "npm.cmd" : "npm", ["install"], { cwd: projectName, stdio: "inherit", + shell: true, }); child.on("error", reject); child.on("exit", code => {