title: Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames
body: <p>This error occurs when I try to install package.</p>
  
  <p>My node version - <code>8.11.3</code>.</p>
  
  <p>npm - <code>5.6.0</code>.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
  npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz
  npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't 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"
  npm ERR! fetch failed https://registry.npmjs.org/async/-/async-0.2.6.tgz
  npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't 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"
  npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz
  npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't 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"
  npm ERR! fetch failed https://registry.npmjs.org/async/-/async-0.2.6.tgz
  npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't 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"
  npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz
  npm ERR! fetch failed https://registry.npmjs.org/async/-/async-0.2.6.tgz
  npm ERR! Windows_NT 6.1.7601
  npm ERR! argv "C:\\Users\\Pawel\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Pawel\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Pawel\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Pawel\\.atom\\.apmrc" "install" "C:\\Users\\Pawel\\AppData\\Local\\Temp\\d-11881-6496-2xm5hl.fyhtcsor\\package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=ia32" "--global-style"
  npm ERR! node v6.9.5
  npm ERR! npm  v3.10.10
  
  npm ERR! Hostname/IP doesn't 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"
  npm ERR! 
  npm ERR! If you need help, you may report this error at:
  npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
  
  npm ERR! Please include the following file with any support request:
  npm ERR!     C:\Users\Pawel\AppData\Local\Temp\apm-install-dir-11881-6496-1hnnd3v.aeg4xwdn29\npm-debug.log</code></pre>
  </div>
  </div>
  </p>
  
  <p>EDIT:</p>
  
  <p>I update minimatch to 3.0.4, it's didin't resolve the problem.</p>