请问如何在 .yarnrc.yml 中添加淘宝镜像源 https://registry.npm.taobao.org
see: https://yarnpkg.com/configuration/yarnrc#npmRegistryServer
Defines the hostname of the remote server from where Yarn should fetch the metadata and archives when querying the npm registry. Should you want to define different registries for different scopes, see npmScopes. To define the authentication scheme for your servers, see npmAuthToken. The Hostname must use the HTTPS protocol, but this can be changed by adding it to the unsafeHttpWhitelist.
npmRegistryServer: "https://registry.yarnpkg.com"
嗯,就是这个配置
npmRegistryServer: "https://registry.npm.taobao.org"