Permalink
Browse files

fix: fix regression on npm/yarn path when it has white space

  • Loading branch information...
huochunpeng committed Sep 12, 2018
1 parent fdcac90 commit 3641a92491f27ec304e082287221589d3ad751da
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/package-managers/npm.js
  2. +1 −1 lib/package-managers/yarn.js
@@ -29,7 +29,7 @@ exports.NPM = class {
}
installCommand(executablePath, packages) {
let cmd = `${executablePath} install`;
let cmd = `"${executablePath}" install`;
if (packages && packages.length > 0) {
cmd += ` ${packages.join(' ')}`;
}
@@ -10,7 +10,7 @@ exports.Yarn = class extends npm {
}
installCommand(executablePath, packages) {
let cmd = `${executablePath}`;
let cmd = `"${executablePath}"`;
if (packages && packages.length > 0) {
cmd += ` add ${packages.join(' ')}`;
}

0 comments on commit 3641a92

Please sign in to comment.