Skip to content

Commit

Permalink
Fix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-the-crayon committed Apr 26, 2024
1 parent 93230cb commit 15cf75f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subcommands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit 15cf75f

Please sign in to comment.