卍 花径不曾缘客扫, 蓬门今始为君开. 古佛拈花方一笑, 痴人说梦已三生!

yarn npm 镜像源 淘宝镜像过期

Javascript 拈花古佛 306℃ 0评论 繁體

error An unexpected error occurred: “https://registry.npm.taobao.org/axios: certificate has expired”

原因: 淘宝镜像原地址2024年1月22日已过期

npm 切换镜像源

npm config set registry https://registry.npmmirror.com
//其他
npm 官方原始镜像网址是:https://registry.npmjs.org/
淘宝最新 NPM 镜像:https://registry.npmmirror.com
阿里云 NPM 镜像:https://npm.aliyun.com
腾讯云 NPM 镜像:https://mirrors.cloud.tencent.com/npm/
华为云 NPM 镜像:https://mirrors.huaweicloud.com/repository/npm/
网易 NPM 镜像:https://mirrors.163.com/npm/
中科院大学开源镜像站:http://mirrors.ustc.edu.cn/
清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/
腾讯,华为,阿里的镜像站基本上比较全

yarn 切换镜像源

查看当前镜像源

yarn config get registry 如果是淘宝,则切换

yarn config set registry https://registry.npmmirror.com/

转载请注明:拈花古佛 » yarn npm 镜像源 淘宝镜像过期

喜欢 (0)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址