From c3b9982c44dfa7b25b6c030ba5cdc21fd58ebcde Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 5 Mar 2019 10:17:30 +0000 Subject: [PATCH] Add --no-audit flag to npm commands to reduce overhead --- packages/node_modules/@node-red/registry/lib/installer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/registry/lib/installer.js b/packages/node_modules/@node-red/registry/lib/installer.js index c5095236e..5e0b5a270 100644 --- a/packages/node_modules/@node-red/registry/lib/installer.js +++ b/packages/node_modules/@node-red/registry/lib/installer.js @@ -104,7 +104,7 @@ function installModule(module,version) { } var installDir = settings.userDir || process.env.NODE_RED_HOME || "."; - var args = ['install','--save','--save-prefix="~"','--production',installName]; + var args = ['install','--no-audit','--save','--save-prefix="~"','--production',installName]; log.trace(npmCommand + JSON.stringify(args)); exec.run(npmCommand,args,{ cwd: installDir @@ -197,7 +197,7 @@ function uninstallModule(module) { var list = registry.removeModule(module); log.info(log._("server.install.uninstalling",{name:module})); - var args = ['remove','--save',module]; + var args = ['remove','--no-audit','--save',module]; log.trace(npmCommand + JSON.stringify(args)); exec.run(npmCommand,args,{