常见问题
CERT_HAS_EXPIRED
npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR! request to https://registry.npm.taobao.org/yarn failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in: npm ERR! D:\temp\nodejs\npm_logs\2024-06-26T14_22_51_632Z-debug-0.log PS D:\temp\nodejs> npm config set strict-ssl false
方法1:
# 取消ssl验证
npm config set strict-ssl false