From 1ed5e1c63b71e0a4e7fd0493a37e43a7ef518ebb Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 25 Feb 2019 19:50:53 -0800 Subject: [PATCH] Do not wrap npm path with quotes Fixes #30086 --- src/typingsInstaller/nodeTypingsInstaller.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/typingsInstaller/nodeTypingsInstaller.ts b/src/typingsInstaller/nodeTypingsInstaller.ts index 1d75218c883..2facb1223d0 100644 --- a/src/typingsInstaller/nodeTypingsInstaller.ts +++ b/src/typingsInstaller/nodeTypingsInstaller.ts @@ -89,10 +89,6 @@ namespace ts.server.typingsInstaller { log); this.npmPath = npmLocation !== undefined ? npmLocation : getDefaultNPMLocation(process.argv[0]); - // If the NPM path contains spaces and isn't wrapped in quotes, do so. - if (stringContains(this.npmPath, " ") && this.npmPath[0] !== `"`) { - this.npmPath = `"${this.npmPath}"`; - } if (this.log.isEnabled()) { this.log.writeLine(`Process id: ${process.pid}`); this.log.writeLine(`NPM location: ${this.npmPath} (explicit '${Arguments.NpmLocation}' ${npmLocation === undefined ? "not " : ""} provided)`);