npm install证书过期解决方法
npm install * 时报错:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/events failed, reason: certificate has expired
解决方法:
关闭 npm ssl 严格证书检查npm set strict-ssl false
或切换到官方源:npm config set registry https://registry.npmjs.org/