Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/npm-cli.js')
-rwxr-xr-xbin/npm-cli.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js
index d7c14bc4b..b5cf4e312 100755
--- a/bin/npm-cli.js
+++ b/bin/npm-cli.js
@@ -74,7 +74,10 @@
conf._exit = true
npm.load(conf, function (er) {
if (er) return errorHandler(er)
- if (!unsupported.checkVersion(process.version).unsupported) {
+ if (
+ npm.config.get('update-notifier') &&
+ !unsupported.checkVersion(process.version).unsupported
+ ) {
const pkg = require('../package.json')
let notifier = require('update-notifier')({pkg})
if (