npm最新国内镜像源设置

npm最新国内镜像源设置

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 赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容