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:
-rwxr-xr-xbin/npm-cli.js4
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')