diff options
-rwxr-xr-x | bin/npm-cli.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js index e4da63c97..6f76b2382 100755 --- a/bin/npm-cli.js +++ b/bin/npm-cli.js @@ -83,9 +83,11 @@ ) { const pkg = require('../package.json') let notifier = require('update-notifier')({pkg}) + const isCI = require('ci-info').isCI if ( notifier.update && - notifier.update.latest !== pkg.version + notifier.update.latest !== pkg.version && + !isCI ) { const color = require('ansicolors') const useColor = npm.config.get('color') |