yarn registry 和 npm registry 的区别

difference between yarn registry and npm registry

Yarn 安装生成一个 yarn.lock 文件,该文件从 npmjs.

获取包
  1. npmjsyarnpkg 有何不同?
  2. 如何配置 yarn 从 yarnpkg 获取?
  3. npmjsyarnpkg之间,你更喜欢哪一个?

就注册表而言,基本上没有区别。根据one of the Yarn devs, they just maintain a server that redirects to NPM's registry so that they can monitor traffic and attempt to speed things up. And if you want to change a registry, you can do so on a per-project basis by editing the "registry" key in your .npmrc or globally with npm config set registry to use whatever endpoint you want to download from. For yarn you can use yarn config set registry <registry-url> with an optional global flag.