title: npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
body: <p>It had been a while since I tried setting up a new Angular app -- because I've been working on an existing one for several months. </p>
  
  <p>Today, upon trying to install a new Angular app via the terminal in my Mac, it ran really slowly, and then resulted in this err:</p>
  
  <blockquote>
    <p>npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID</p>
    
    <p>npm ERR! 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</p>
  </blockquote>
  
  <p>How do I address this issue?</p>