npm 依赖下载报错:
request to https://registry.cnpmjs.org/webpack 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
npm config set registry http://registry.npmjs.org/