Skip to content

Commit 1ed5e1c

Browse files
committed
Do not wrap npm path with quotes
Fixes #30086
1 parent c506148 commit 1ed5e1c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/typingsInstaller/nodeTypingsInstaller.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ namespace ts.server.typingsInstaller {
8989
log);
9090
this.npmPath = npmLocation !== undefined ? npmLocation : getDefaultNPMLocation(process.argv[0]);
9191

92-
// If the NPM path contains spaces and isn't wrapped in quotes, do so.
93-
if (stringContains(this.npmPath, " ") && this.npmPath[0] !== `"`) {
94-
this.npmPath = `"${this.npmPath}"`;
95-
}
9692
if (this.log.isEnabled()) {
9793
this.log.writeLine(`Process id: ${process.pid}`);
9894
this.log.writeLine(`NPM location: ${this.npmPath} (explicit '${Arguments.NpmLocation}' ${npmLocation === undefined ? "not " : ""} provided)`);

0 commit comments

Comments
 (0)