6
npm 和 Yarn 换源加速国内访问
source link: https://wiki-power.com/npm%E5%92%8CYarn%E6%8D%A2%E6%BA%90%E5%8A%A0%E9%80%9F%E5%9B%BD%E5%86%85%E8%AE%BF%E9%97%AE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
npm 和 Yarn 换源加速国内访问
背景#
npm 和 Yarn 默认源地址在国外,国内访问速度慢。
以下命令查看当前使用的镜像源:
解决方法#
使用软件 cgr 快速切换 npm 和 Yarn 的镜像源。
安装 cgr#
列出当前可用的镜像源#
选择一个镜像源进行切换(淘宝)#
测试访问速度#
参考与致谢#
文章作者:Power Lin
原文地址:https://wiki-power.com
版权声明:文章采用 CC BY-NC-SA 4.0 协议,转载请注明出处。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK