今天在使用npm下載依賴的時(shí)候出現(xiàn)淘寶鏡像證書過期問題
error An unexpected error occurred: "https://registry.npm.taobao.org/axios: certificate has expired"
解決: 解決方法就是切換淘寶最新鏡像地址,執(zhí)行完成之后就可以正常下載依賴了
npm config set registry https://registry.npmmirror.com
其他[鏡像源]
npm 官方原始鏡像網(wǎng)址是: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/
網(wǎng)易 NPM 鏡像:https://mirrors.163.com/npm/
中科院大學(xué)開源鏡像站:http://mirrors.ustc.edu.cn/
清華大學(xué)開源鏡像站:https://mirrors.tuna.tsinghua.edu.cn/
騰訊,華為,阿里的鏡像站基本上比較全