How do I use multiple npm registries in Yarn?

前端 未结 3 1405
北荒
北荒 2021-02-01 17:41

I\'m trying to setup Yarn 0.17.9 in our environment but I have a problem with our registry. We are currently using two registries, official npmjs and our own registry on interna

3条回答
  •  自闭症患者
    2021-02-01 17:53

    Yarn doesn't have support --registry flag as npm but you can set up your registry in .yarnrc

    If your .yarnrc is being ignored it can be copied out of the ~/.yarnrc using:

    yarn config set registry http://registry.com/registry//
    

提交回复
热议问题