Skip to content

Commit

Permalink
cli: don't check for updates to npm when we are updating npm itself
Browse files Browse the repository at this point in the history
  • Loading branch information
olore committed Jul 27, 2018
1 parent 4f801d8 commit 7c90e10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/npm-cli.js
Expand Up @@ -75,6 +75,7 @@
npm.load(conf, function (er) {
if (er) return errorHandler(er)
if (
!npm.argv.includes('npm') &&
npm.config.get('update-notifier') &&
!unsupported.checkVersion(process.version).unsupported
) {
Expand Down

0 comments on commit 7c90e10

Please sign in to comment.