问题描述:
npm install
执行npm install,出现错误:npm ERR! code DEPTH_ZERO_SELF_SIGNED_CERT
npm ERR! code DEPTH_ZERO_SELF_SIGNED_CERT
npm ERR! errno DEPTH_ZERO_SELF_SIGNED_CERT
npm ERR! request to https://registry.npmjs.org/axios failed, reason: self signed certificatenpm ERR! A complete log of this run can be found in:
问题产生原因:
ssl证书认证失败,关闭证书即可。
解决办法:
npm config set strict-ssl false