首页 新闻 搜索 专区 学院

如何在 .yarnrc.yml 中添加淘宝镜像源

0
悬赏园豆:30 [已解决问题] 解决于 2021-03-09 16:29

请问如何在 .yarnrc.yml 中添加淘宝镜像源 https://registry.npm.taobao.org

dudu的主页 dudu | 高人七级 | 园豆:37130
提问于:2021-03-09 15:44
< >
分享
最佳答案
0

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"

收获园豆:30
Laggage | 菜鸟二级 |园豆:462 | 2021-03-09 15:58

嗯,就是这个配置

npmRegistryServer: "https://registry.npm.taobao.org"
dudu | 园豆:37130 (高人七级) | 2021-03-09 16:29
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册