Search code examples
yarnpkg

Yarn keeps using old registry


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:

  • Completely remove and re-install yarn
  • yarn config set registry https://registry.yarnpkg.com/
  • Verified that there is no mention of the old registry in either ~/.npmrc or ~/.yarnrc
  • Cleared the yarn cache using 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?


Solution

  • Got it, the culprit was ~/.config/yarn/global/yarn.lock...