npm报错:certificate has expired

Published on 2024-09-06 10:42 in 分类: 随笔 with 狂盗一枝梅
分类: 随笔

npm ERR! code CERT_HAS_EXPIRED

npm ERR! errno CERT_HAS_EXPIRED

npm ERR! request to https://registry.npm.taobao.org/yorkie/download/yorkie-2.0.0.tgz > failed, reason: certificate has expired

解决方案:

npm cache clean --force
npm config set strict-ssl false
npm install

#node #npm