diff options
author | indexzero <charlie.robbins@gmail.com> | 2010-10-24 00:54:00 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-10-24 03:32:20 +0400 |
commit | d7c69821a01c8327f5468fe7a115f2537f908da9 (patch) | |
tree | c5f5394b4dfe33b95e274a5725bbe300b465f9a0 /cli.js | |
parent | 85769c59d990a24b46b365561a82fe8a5c5c878d (diff) |
[api] Small changes to make npm available programatically
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -74,9 +74,7 @@ else { arglist.unshift(command) command = "help" } - ini.resolveConfigs(conf, function (er) { - if (er) return errorHandler(er) - npm.config.set("root", ini.get("root")) + npm.load({ conf: conf, exit: true }, function (err, loaded) { npm.commands[command](arglist, errorHandler) - }) + }); } |