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
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/npm-cli.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js
index e0b9f20bb..f29437093 100755
--- a/bin/npm-cli.js
+++ b/bin/npm-cli.js
@@ -49,6 +49,13 @@ if (conf.version) {
return
}
+if (conf.versions) {
+ var v = process.versions
+ v.npm = npm.version
+ console.log(v)
+ return
+}
+
log.info("npm@"+npm.version, "using")
log.info("node@"+process.version, "using")