How to override global yarn registry for particular project

后端 未结 2 804
甜味超标
甜味超标 2021-02-03 11:28

For most projects I pull packages from the internal server, so it\'s been added by

yarn config set registry http://custom-packages-server.com

But no

2条回答
  •  孤城傲影
    2021-02-03 11:40

    Found the way how to achieve that.

    It turned out that you can use .yarnrc file inside the project's directory (yeah, pretty much the same like .npmrc). And there you can specify custom config properties which yarn will look into first.

    So that's how my .yarnrc file looks now.

    registry "https://registry.yarnpkg.com"
    

提交回复
热议问题