1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add --no-update-notifier flag to npm calls to speedup processing.

This commit is contained in:
Dave Conway-Jones 2019-03-07 09:03:25 +00:00
parent b246f0779f
commit 3b11195caa
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ Runtime
- Remove remnants of when library in git/index Fixes #2057 - Remove remnants of when library in git/index Fixes #2057
- Clear subflow status on close - Clear subflow status on close
- Add exportGlobalContextKeys to prevent exposing functionGlobalContext keys - Add exportGlobalContextKeys to prevent exposing functionGlobalContext keys
- Add --no-audit flag to npm commands to reduce workload - Add --no-audit and --no-update-notifier flags to npm commands to reduce workload
Editor Editor
- Transfer placeholder and type to generated TypedInput field - Transfer placeholder and type to generated TypedInput field

View File

@ -104,7 +104,7 @@ function installModule(module,version) {
} }
var installDir = settings.userDir || process.env.NODE_RED_HOME || "."; var installDir = settings.userDir || process.env.NODE_RED_HOME || ".";
var args = ['install','--no-audit','--save','--save-prefix="~"','--production',installName]; var args = ['install','--no-audit','--no-update-notifier','--save','--save-prefix="~"','--production',installName];
log.trace(npmCommand + JSON.stringify(args)); log.trace(npmCommand + JSON.stringify(args));
exec.run(npmCommand,args,{ exec.run(npmCommand,args,{
cwd: installDir cwd: installDir
@ -197,7 +197,7 @@ function uninstallModule(module) {
var list = registry.removeModule(module); var list = registry.removeModule(module);
log.info(log._("server.install.uninstalling",{name:module})); log.info(log._("server.install.uninstalling",{name:module}));
var args = ['remove','--no-audit','--save',module]; var args = ['remove','--no-audit','--no-update-notifier','--save',module];
log.trace(npmCommand + JSON.stringify(args)); log.trace(npmCommand + JSON.stringify(args));
exec.run(npmCommand,args,{ exec.run(npmCommand,args,{