Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
Julian Lam
2017-02-07 16:03:54 -05:00
78 changed files with 649 additions and 367 deletions

View File

@@ -106,7 +106,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);
}