Skip to content

Setting a npmRegistryServer for a private package without a scope? #2702

Answered by arcanis
ericrav asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to configure a different npmRegistryServer for a specific package?

Kinda. You can use the resolutions field to force the download from a specific location. You can also write a resolver plugin that handles this one particular package.

We have a private package that doesn't include a @scope, so I don't think npmScopes in .yarnrc.yml works.

We don't really support this use case natively, and I'm not convinced it's common enough (and difficult enough to workaround) that it's worth the extra complexity 🤔

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ericrav
Comment options

@arcanis
Comment options

@ericrav
Comment options

Answer selected by ericrav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants