We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a719df4 commit 20f67d7Copy full SHA for 20f67d7
src/typingsInstaller/nodeTypingsInstaller.ts
@@ -1,4 +1,4 @@
1
-import { execFileSync } from "child_process";
+import { execSync } from "child_process";
2
import * as fs from "fs";
3
import * as path from "path";
4
@@ -172,7 +172,7 @@ class NodeTypingsInstaller extends ts.server.typingsInstaller.TypingsInstaller {
172
this.log.writeLine(`Exec: ${command}`);
173
}
174
try {
175
- const stdout = execFileSync(command, { ...options, encoding: "utf-8" });
+ const stdout = execSync(command, { ...options, encoding: "utf-8" });
176
if (this.log.isEnabled()) {
177
this.log.writeLine(` Succeeded. stdout:${indent(sys.newLine, stdout)}`);
178
0 commit comments