当前位置:   article > 正文

Yarn 和 NPM 国内快速镜像(淘宝镜像)_npm 镜像仓库国内最快

npm 镜像仓库国内最快

如果在前端开发使用 NPM 或者 YARN 下载过程中碰到网速非常慢,可以配置国内 淘宝镜像 来提升下载速度。具体方法如下

NPM

查询当前镜像

npm get registry 
  • 1

设置为淘宝镜像

npm config set registry http://registry.npm.taobao.org/
  • 1

设置为官方镜像

npm config set registry https://registry.npmjs.org/
  • 1

YARN

查询当前镜像

yarn config get registry
  • 1

设置为淘宝镜像

yarn config set registry http://registry.npm.taobao.org/
  • 1

设置为官方镜像

yarn config set registry https://registry.yarnpkg.com
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/212439
推荐阅读
相关标签
  

闽ICP备14008679号