Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 34eba7d

Browse files
authored
Merge pull request #15 from TobyMosque/master
Yarn on Windows
2 parents 7c90264 + 1bed7f8 commit 34eba7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueCliMiddleware/Util/ScriptRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public ScriptRunner(string workingDirectory, string scriptName, string arguments
4949
// On Windows, the NPM executable is a .cmd file, so it can't be executed
5050
// directly (except with UseShellExecute=true, but that's no good, because
5151
// it prevents capturing stdio). So we need to invoke it via "cmd /c".
52+
completeArguments = $"/c {npmExe} {completeArguments}";
5253
npmExe = "cmd";
53-
completeArguments = $"/c npm {completeArguments}";
5454
}
5555

5656
var processStartInfo = new ProcessStartInfo(npmExe)

0 commit comments

Comments
 (0)