今天執(zhí)行npx nrm use taobao命令時(shí)遇到以下錯(cuò)誤:
npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.npmjs.org/nrm failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not cert's CN: 61.184.8.24
主機(jī)名和證書altnames不匹配,經(jīng)查是瀏覽器緩存數(shù)據(jù)導(dǎo)致,點(diǎn)擊chrome瀏覽器控制欄三個(gè)點(diǎn)
刪除瀏覽器數(shù)據(jù)
刪除瀏覽器數(shù)據(jù),再重新執(zhí)行npx nrm use taobao,命令就可以正常執(zhí)行了