From 408cdf14a58946c06785e489a00fc2ee68268429 Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Wed, 18 Jul 2018 21:21:59 -0400 Subject: [PATCH] enable audit for npm i -g --- lib/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install.js b/lib/install.js index 66f85d80a49a2..03d2c19abe395 100644 --- a/lib/install.js +++ b/lib/install.js @@ -239,7 +239,7 @@ function Installer (where, dryrun, args, opts) { this.link = opts.link != null ? opts.link : npm.config.get('link') this.saveOnlyLock = opts.saveOnlyLock this.global = opts.global != null ? opts.global : this.where === path.resolve(npm.globalDir, '..') - this.audit = npm.config.get('audit') && !this.global + this.audit = npm.config.get('audit') this.started = Date.now() } Installer.prototype = {}