mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add --no-audit flag to npm commands to reduce overhead
This commit is contained in:
		| @@ -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,{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user