npm在安装时候报错 npm ERR! request to https://registry.npm.taobao.org/jquery failed, reason: certificate...

npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/jquery failed, reason: certificate has expired

原因:https自签名失败

临时解决方法:

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

你可能感兴趣的:(npm,前端,node.js)