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.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js
index 1f68099bf..ce89eaacc 100755
--- a/bin/npm-cli.js
+++ b/bin/npm-cli.js
@@ -25,9 +25,11 @@
unsupported.checkForUnsupportedNode()
- var updater = require('update-notifier')
- var pkg = require('../package.json')
- updater({pkg: pkg}).notify({defer: true})
+ if (!unsupported.checkVersion(process.version).unsupported) {
+ var updater = require('update-notifier')
+ var pkg = require('../package.json')
+ updater({pkg: pkg}).notify({defer: true})
+ }
var path = require('path')
var npm = require('../lib/npm.js')