npm ERR! code CERT_HAS_EXPIRED — 解决证书过期问题
**问题:**配置node.js的时候执行命令 — npm install express -g 然后报这个错误
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/npm failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in: D:\DevelopmentTools\node.js\node_cache\_logs\2024-03-19T13_03_16_342Z-debug-0.log
**原因:**服务器的SSL证书已过期
解决方法:
npm cache clean --force //清除npm缓存
npm config set strict-ssl false //禁用SSL
npm install express -g