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, 3 insertions, 4 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js
index a71985b37..79e5c9702 100755
--- a/bin/npm-cli.js
+++ b/bin/npm-cli.js
@@ -50,10 +50,9 @@ if (conf.version) {
}
if (conf.versions) {
- var v = process.versions
- v.npm = npm.version
- console.log(v)
- return
+ npm.command = "version"
+ conf.usage = false
+ npm.argv = []
}
log.info("using", "npm@%s", npm.version)