npm安装报错

2023-07-11,,

npm ERR! request to https://registry.cnpmjs.org/element-ui failed, reason: Hostname/IP does not match certificate's altn ames: Host: registry.cnpmjs.org. is not in the cert's altnames: DNS:r.cnpmjs.org

报错原因: https的自签名失败

解决方法:终端输入: npm config set strict-ssl false

npm安装报错的相关教程结束。

《npm安装报错.doc》

下载本文的Word格式文档,以方便收藏与打印。