设置前端包管理器 Yarn 的资源镜像地址

首先通过下面的命令查看当前的资源地址

yarn config get registry

默认会得到 https://registry.yarnpkg.com,接着通过下面的命令将资源地址链接到淘宝的镜像

yarn config set registry https://registry.npm.taobao.org
发布了50 篇原创文章 · 获赞 0 · 访问量 1818

猜你喜欢

转载自blog.csdn.net/weixin_44273383/article/details/105110056
今日推荐