一.查看是否鏡像源過(guò)期
1.查看當(dāng)前npm配置
npm config list
2.清空緩存
npm cache clean --force
3.修改鏡像源
npm config set registry https://registry.npmmirror.com
二.忽略證書(shū)驗(yàn)證
1.在本地環(huán)境直接忽略證書(shū)驗(yàn)證
yarn config set strict-ssl false
2.重新運(yùn)行
yarn install