I've been using yarn with a private registry in the past - however, the registry has now shut down and I want to use yarn with the official registry.
Whatever I do, yarn always seems to want to connect to the old registry and there's simply no way of making it use the new one. I've already tried:
yarn config set registry https://registry.yarnpkg.com/
~/.npmrc
or ~/.yarnrc
yarn cache clean
No matter what I do, yarn still tries to connect to the old registry on every install and I have no idea where yarn is getting that from...
any ideas?
By default, the Yarn CLI uses a different registry, and not the original one: https://registry.yarnpkg.com .
Yarn is basically a new installer, where NPM structure and registry is the same.
yarnrc files allow you to configure additional Yarn features. The config command may also be used to set these options. Yarn will merge . yarnrc files up the file tree.
Remove your global yarn.lockrm ~/.config/yarn/global/yarn.lock
and thenyarn config set registry https://registry.yarnpkg.com/
Got it, the culprit was ~/.config/yarn/global/yarn.lock
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With