我的是
这通常是由于证书颁发机构(CA)的证书已经过期,或者服务器上的证书没有及时更新。
更换 npm 仓库源:如果你正在使用淘宝的 npm 镜像(
registry.npm.taobao.org
),可以尝试更换为官方的 npm 仓库或其他可靠的镜像。你可以通过修改~/.npmrc
文件来更改仓库源。例如,将淘宝的镜像源更改为官方的 npm 仓库:
npm config set registry https://registry.npmjs.org/ |
再npm i就行了
不行就再换
npm config set registry http://registry.npm.taobao.org/