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/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli.js b/cli.js
index a3e9f3273..a387c7377 100755
--- a/cli.js
+++ b/cli.js
@@ -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)
- })
+ });
}