关于npm安装淘宝镜像证书过期问题
1、取消ssl验证:
npm config set strict-ssl false 这个方法一般就可以解决了。
npm config set strict-ssl false
2、更换npm镜像源:
npm config set registry https://registry.npmmirror.com (淘宝的镜像源更新了地址)
npm config set registry https://registry.npmmirror.com
pnpm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
3、清除缓存
npm cache clean --force
如果使用到了nvm
修改: 找到\nvm\nvm\settings.txt文件,配置如下
node_mirror: https://npmmirror.com/mirrors/node/ npm_mirror: https://npmmirror.com/mirrors/npm/