Merge pull request #5728 from NodeBB/patch-pitaj

Assorted Fixes
This commit is contained in:
Julian Lam
2017-06-02 10:14:50 -04:00
committed by GitHub
9 changed files with 73 additions and 54 deletions

View File

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