使用npm 安装依赖包cmd报错npm ERR! code ERR

    科技2022-08-11  94

    报错

    npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID npm ERR! request to https://registry.cnpmjs.org/nprogress failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.cnpmjs.org. is not in the ce

    解决方法

    npm config set strict-ssl false

    npm install -g supervisor

    Processed: 0.013, SQL: 8