Permalink
Browse files

() use npm view for compatibility.

  • Loading branch information...
1 parent 376488f commit 4c71b371675189668243c740312e03f7a0d59130 @zpoley committed Feb 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jsonCommand.js
View
@@ -68,7 +68,7 @@ JSON.Command.prototype.printversion = function() {
var npm = require("npm");
npm.load([], function(er) {
sys.print("json command line toolkit\n version: ");
- npm.commands.info([ "json", "version" ], function(er, data) {
+ npm.commands.view([ "json", "version" ], function(er, data) {
process.exit();
});
});

0 comments on commit 4c71b37

Please sign in to comment.