diff options
Diffstat (limited to 'bin/npm-cli.js')
-rwxr-xr-x | bin/npm-cli.js | 5 |
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 ( |