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:
authorisaacs <i@izs.me>2012-08-13 20:51:56 +0400
committerisaacs <i@izs.me>2012-08-13 20:57:02 +0400
commit8808e63533da631835d803ffc809705c1016edad (patch)
tree27158e6cea89b573cbb5fd96bb1a0180460e5996 /bin
parent50f91bfb27649967002e0a1ad18eb753ef83d82b (diff)
Show all versions in 'npm version<noargs>'
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)