Skip to content

Commit

Permalink
Update executeCommand.ts - add shell:true for windows .cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 authored Apr 16, 2024
1 parent 26fdf79 commit 96ac4e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/executeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export function executeCommand(

// Fix npm / node executable paths on Windows
if (isWindows) {
if (command === "npm") command += ".cmd";
if (command === "npm") {
command += ".cmd";
spawnOptions.shell=true;

Check failure on line 75 in src/lib/executeCommand.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Replace `=` with `·=·`
}

Check failure on line 76 in src/lib/executeCommand.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Replace `⏎↹↹↹` with `·`
else if (command === "node") command += ".exe";
}

Expand Down

0 comments on commit 96ac4e3

Please sign in to comment.