Fix npm@5 saving by default

v1.18.x
Peter Jaszkowiak 8 years ago
parent 8e5bcf6105
commit 34af855848

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

Loading…
Cancel
Save