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:
Diffstat (limited to 'bin/npm-cli.js')
-rwxr-xr-xbin/npm-cli.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js
index 8c8fa8031..1f68099bf 100755
--- a/bin/npm-cli.js
+++ b/bin/npm-cli.js
@@ -25,6 +25,10 @@
unsupported.checkForUnsupportedNode()
+ 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')
var npmconf = require('../lib/config/core.js')