0

im running the install cmd for ngx-bootstrap npm install ngx-bootstrap --save but i get the following errors

npm ERR! request to https://registry.npmjs.org/ngx-bootstrap failed, reason: 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! A complete log of this run can be found in:
npm ERR!     C:\Users\user1\AppData\Roaming\npm-cache\_logs\2018-09-01T13_52_56_500Z-debug.log

I would like to know what could be the issue

michaelitoh
  • 2,317
  • 14
  • 26
Sai
  • 1
  • Possible duplicate of https://stackoverflow.com/questions/52128212/npm-not-installing-package-hostname-ip-doesnt-match-certificates-altnames – Jonathan Hamel Sep 01 '18 at 16:08

1 Answers1

0

run npm config set strict-ssl false
and re-run npm install ngx-bootstrap --save

Ayoub k
  • 7,788
  • 9
  • 34
  • 57