npm安装ionic出现异常:request to https://registry.npm.taobao.org/@ionic%2fcli failed, reason: certificate has expired

异常:

 异常是淘宝镜像过期了,现在淘宝镜像从https://registry.npm.taobao.org/换成了 https://registry.npmmirror.com

查看npm的配置,查看淘宝镜像地址

npm config list

 更换镜像地址

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

再次运行ionic的安装命令成功

npm install -g @ionic/cli

 

posted @ 2024-03-20 11:44  流年sugar  阅读(46)  评论(0编辑  收藏  举报