summaryrefslogtreecommitdiff
path: root/deps/npm/lib/commands/doctor.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/commands/doctor.js')
-rw-r--r--deps/npm/lib/commands/doctor.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/npm/lib/commands/doctor.js b/deps/npm/lib/commands/doctor.js
index 47a522eb67..508faa57aa 100644
--- a/deps/npm/lib/commands/doctor.js
+++ b/deps/npm/lib/commands/doctor.js
@@ -125,8 +125,7 @@ class Doctor extends BaseCommand {
stringLength: s => ansiTrim(s).length,
}
- const silent = log.levels[log.level] > log.levels.error
- if (!silent) {
+ if (!this.npm.silent) {
this.npm.output(table(outTable, tableOpts))
if (!allOk) {
console.error('')