Fix runNpmCommand on Windows

This commit is contained in:
Martijn Walraven
2015-07-22 19:12:37 -07:00
parent 1110a69f43
commit 02cfef50d6

View File

@@ -342,7 +342,8 @@ var runNpmCommand = function (args, cwd) {
var npmPath;
if (os.platform() === "win32") {
npmPath = files.pathJoin(nodeBinDir, "npm.cmd");
npmPath = files.convertToOSPath(
files.pathJoin(nodeBinDir, "npm.cmd"));
} else {
npmPath = files.pathJoin(nodeBinDir, "npm");
}