npm install一直报错 failed, reason: certificate has expired

npm install一直报错 failed, reason: certificate has expired_第1张图片

 刚开始我以为是taobao镜像源的问题,所以我把npm的地址切换成了 https://resgistry.npmjs.org/ ,发现还是不行。

问题解决:

npm config set strict-ssl false

 执行上面命令之后,npm install 成功

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