diff options
author | isaacs <i@izs.me> | 2012-08-13 20:51:56 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-13 20:57:02 +0400 |
commit | 8808e63533da631835d803ffc809705c1016edad (patch) | |
tree | 27158e6cea89b573cbb5fd96bb1a0180460e5996 /bin | |
parent | 50f91bfb27649967002e0a1ad18eb753ef83d82b (diff) |
Show all versions in 'npm version<noargs>'
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/npm-cli.js | 7 |
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) |