Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/adduser.js')
-rw-r--r--deps/npm/lib/adduser.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/adduser.js b/deps/npm/lib/adduser.js
index 6c8a652bea3..f59372a296c 100644
--- a/deps/npm/lib/adduser.js
+++ b/deps/npm/lib/adduser.js
@@ -135,7 +135,8 @@ function save (c, u, cb) {
if (scope.charAt(0) !== "@") scope = "@" + scope
var scopedRegistry = npm.config.get(scope + ":registry")
- if (scopedRegistry) uri = scopedRegistry
+ var cliRegistry = npm.config.get("registry", "cli")
+ if (scopedRegistry && !cliRegistry) uri = scopedRegistry
}
var params = {