Fix tests, npm Windows fixes

This commit is contained in:
Peter Jaszkowiak
2017-01-21 19:21:02 -07:00
parent 186209a0a3
commit 001aa3d1a8
3 changed files with 4 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ module.exports = function (Plugins) {
}
function runNpmCommand(command, pkgName, version, callback) {
require('child_process').execFile('npm', [command, pkgName + (command === 'install' ? '@' + version : '')], function (err, stdout) {
require('child_process').execFile((process.platform === 'win32') ? 'npm.cmd' : 'npm', [command, pkgName + (command === 'install' ? '@' + version : '')], function (err, stdout) {
if (err) {
return callback(err);
}