Multiple registry support (re: #1401) #3093
Conversation
…light refactor of registry manager
…use of a registry manager
@@ -129,11 +135,17 @@ function set (key, val, cb) { | |||
} | |||
|
|||
function get (key, cb) { | |||
debugger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this, please.
Before a pull request to npm can be accepted, you should first update https://github.com/isaacs/npmconf and https://github.com/isaacs/npm-registry-client. The changes to npm itself should be virtually nothing. Closing for now. Please do pursue this in those other repos, though. |
Oooh, this is exciting. /cc @indexzero |
+1 hopefully this lands in the other repos @isaacs talked about. |
Sorry guys - I won't be progressing this further for the time being. Without the further info discussed in #1401 I'm just stabbing in the dark. |
@piscisaureus is working on this, a little bird told me. |
This is my attempt at #1401, allowing whitespace separated registries to be specified in NPM Client. Still to be done from the numbered list in #1401 is 3), 5), 6), 7) - I'm not sure what 4) means (~/.npm/ is cache folder, right? So should it support caching from both registries?)
This pull request I think solves the main issue I've been having, which is there's no way to have a private instance of the registry which just contains private dependencies and doesn't replicate the full registry.npmjs.org. This allows there to be a 'fallback registry'
Review, comments, etc welcome!