Do you want to request a feature or report a bug?
What is the current behavior?
If the connection to
registry.yarnpkg.com fails and the retries also fail, the installation totally fails
What is the expected behavior?
It would be nice to have a fallback mechanism. If hitting
registry.yarnpkg.com fails multiple times, maybe try using CloudFlare’s mirror (
registry.npmjs.com directly, or something like that.
- Only fall back on failures
- Do NOT do this for registry server names other than the default
registry.yarnpkg.com(ie. if user changes the registry, respect that setting)
- It’s probably only safe to do this for modules that are already listed in the lock file, as we already know the hash of the good file