From 3b11195caa4fe888db2335dfc006e4b82768acc3 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 7 Mar 2019 09:03:25 +0000 Subject: [PATCH] Add --no-update-notifier flag to npm calls to speedup processing. --- CHANGELOG.md | 2 +- packages/node_modules/@node-red/registry/lib/installer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c57db396..bbf2e7fa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Runtime - Remove remnants of when library in git/index Fixes #2057 - Clear subflow status on close - 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 - Transfer placeholder and type to generated TypedInput field diff --git a/packages/node_modules/@node-red/registry/lib/installer.js b/packages/node_modules/@node-red/registry/lib/installer.js index 5e0b5a270..3562dfb47 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','--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)); 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','--no-audit','--save',module]; + var args = ['remove','--no-audit','--no-update-notifier','--save',module]; log.trace(npmCommand + JSON.stringify(args)); exec.run(npmCommand,args,{