Skip to content

Commit 7c2b56b

Browse files
committed
Fix process spawning on windows
1 parent 4e4af27 commit 7c2b56b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/NsCliService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ export abstract class NSProject extends EventEmitter {
9292
public abstract debug(args: IAttachRequestArgs | ILaunchRequestArgs): Promise<any>;
9393

9494
protected spawnProcess(commandPath: string, commandArgs: string[], tnsOutput?: string): ChildProcess {
95-
let child: ChildProcess = spawn(commandPath, commandArgs, { cwd: this.getProjectPath() });
95+
let options = { cwd: this.getProjectPath(), shell: true };
96+
let child: ChildProcess = spawn(commandPath, commandArgs, options);
9697
child.stdout.setEncoding('utf8');
9798
child.stderr.setEncoding('utf8');
9899
return child;

0 commit comments

Comments
 (0)