npm 安装报错,提示证书过期:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://r.cnpmjs.org/md5 failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Tool\WorkTool\Node\node_cache_logs\2021-10-20T08_45_38_250Z-debug.log
解决方案:
npm cache clean --force
npm config set strict-ssl false
npm install
参考地址