diff options
Diffstat (limited to 'bin/npm-cli.js')
-rwxr-xr-x | bin/npm-cli.js | 8 |
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') |