Skip to content

Commit 7c90e10

Browse files
committed
cli: don't check for updates to npm when we are updating npm itself
1 parent 4f801d8 commit 7c90e10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/npm-cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
npm.load(conf, function (er) {
7676
if (er) return errorHandler(er)
7777
if (
78+
!npm.argv.includes('npm') &&
7879
npm.config.get('update-notifier') &&
7980
!unsupported.checkVersion(process.version).unsupported
8081
) {

0 commit comments

Comments
 (0)