6

I am giving yarn a try as a replacement for npm.

For npm, we use both a private sinopia registry and for some namespaced package the official repoistory as well, as sinopia doesn't handle the namespace.

Since my .npmrc has these registries defined.

registry=http://sinopia-registry.internal:4873/
@types:registry=https://registry.npmjs.org

I know that I can set the registry globally in yarn in its .yarnrc via:

registry "http://sinopia-registry.internal:4873/"

Yet how to I tell yarn to use a different registry form @types namespaced packages?

I tried different approaches on the lines of:

registry @types "https://registry.npmjs.org/"

Yet they all lead to yarn to complain about syntax errors.

k0pernikus
  • 60,309
  • 67
  • 216
  • 347
  • Doh. Possible duplicate of http://stackoverflow.com/questions/40845598/how-do-i-use-multiple-npm-registries-in-yarn – k0pernikus Dec 07 '16 at 12:16

1 Answers1

1

Try instead using:

"@types:registry" "https://registry.npmjs.org"
Brady Dowling
  • 4,920
  • 3
  • 32
  • 62