问题描述
HarmoneyOS项目编译构建提示certificate has expired
原因分析:
npm源地址ssl证书过期,
https://registry.npm.taobao.org/这个以前淘宝源提示过期,
更换个别的源就行了
解决方案:
更换npm源
查看当前源 npm config get registry
更换为新的源 npm config set registry https://registry.npmmirror.com
其他源地址
npm 官方原始镜像网址是:https://registry.npmjs.org/
阿里云 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/
腾讯,华为,阿里的镜像站基本上比较全