npm、cnpm安装报错

1,098 阅读1分钟

问题:

request to registry.cnpmjs.org/axios failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.cnpmjs.org. is not in the cert's altnames: DNS:r.cnpmjs.org

解决方法: npm set strict-ssl false