How to override global yarn registry for particular project
npm config delete registry
you can delete old yarnrc
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"
It is also possible to temporarily override the registry for one yarn
command, without having to modify a file:
yarn --registry=https://registry.company.com/