AnLuoRidge
V2EX  ›  Node.js

npm 服务器的证书好像出问题了

  •  
  •   AnLuoRidge · Sep 1, 2018 · 8963 views
    This topic created in 2816 days ago, the information mentioned may be changed or developed.

    我 npm install 的时候,一直报:

    Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ERR_TLS_CERT_ALTNAME_INVALID: request to https://registry.npmjs.org/react-scripts failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net

    搜了下 SO,发现不少人都在问,比如这贴:NPM not installing package. Hostname/IP doesn't match certificate's altnames:

    底下有人回复说,浏览器访问 https://registry.npmjs.org/http-server 也会报证书问题。我试了下,真的是……

    4 replies    2018-09-02 21:37:41 +08:00
    wdlth
        1
    wdlth  
       Sep 1, 2018
    我这返回的是 CloudFlare 的 IP 地址,没有出现证书错误。
    Binarization
        2
    Binarization  
       Sep 1, 2018
    是的,CDN 证书错了。
    AnLuoRidge
        3
    AnLuoRidge  
    OP
       Sep 2, 2018
    嗯,现在修复了~
    cstome
        4
    cstome  
       Sep 2, 2018
    有没有想过,哪天 NPM 之类的不再维护了,无法 npm install, 你写的 Node 程序也都没用了?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5261 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    ♥ Do have faith in what you're doing.