在国内使用npm安装镜像的时候非常的慢,而且有时还断网下不了。可能是npm官方镜像在国内可能不太稳定,可以切换npm的国内镜像
修改成淘宝镜像源
npm set registry https://registry.npmmirror.com/
测试
npm config get registry
返回https://registry.npmmirror.com/
,说明镜像配置成功
在国内使用npm安装镜像的时候非常的慢,而且有时还断网下不了。可能是npm官方镜像在国内可能不太稳定,可以切换npm的国内镜像
npm set registry https://registry.npmmirror.com/
npm config get registry
返回https://registry.npmmirror.com/
,说明镜像配置成功
本文标题:npm使用淘宝镜像
本文链接:https://www.haomeiwen.com/subject/hamjzdtx.html
网友评论