npm最新国内镜像源设置

国内源

淘宝:https://registry.npmmirror.com/
腾讯云:https://mirrors.cloud.tencent.com/npm/
CNPM:https://r.cnpmjs.org/

设置

#查询当前使用的镜像源
npm get registry

#设置为淘宝镜像源 
npm config set registry https://registry.npmmirror.com/

#验证设置
npm get registry

#还原为官方源
npm config set registry https://registry.npmjs.org/
© 版权声明
THE END
喜欢就支持一下吧
点赞 0 分享 收藏
评论 抢沙发
易航的头像-易航博客
欢迎您留下宝贵的见解!
提交
易航的头像-易航博客

易航

取消
表情 代码 图片 快捷回复

    暂无评论内容