npm install 报错nPM ERR! COde CERT HAS EXPIRED
npM ERR! errnO CERT HAS EXPIRED
npm ERR! request to https://registry.npm.taobao.org/@antv%2fx6 failed, reason: certificate has expired
如图所示:
英语不好咱翻译一下,提示证书过期,那就重新配置下证书
解决方案:
npm cache clean --force
npm config set strict-ssl false
npm install
按照上述方法配置后,问题解决,依赖就成功安装啦