From 34af855848423de12656d0acdcb2f693f4d40946 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Thu, 1 Jun 2017 14:12:25 -0600
Subject: [PATCH] Fix npm@5 saving by default
---
src/plugins/install.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/install.js b/src/plugins/install.js
index a5ba2db1dd..73246d69e6 100644
--- a/src/plugins/install.js
+++ b/src/plugins/install.js
@@ -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);
}