Home > Software design >  npm ERR! code CERT_HAS_EXPIRED - Angular 13
npm ERR! code CERT_HAS_EXPIRED - Angular 13

Time:05-13

I have installed angular and it shows me the version and everything. But when I try to run command npm start it gives me error. I have uninstalled and reinstalled everything but this issue 't go away. I tried to run npm install and I got this error. (screenshots attached)

ng --version output

npm start output

npm install output

CodePudding user response:

You use a custom package registry which requires an active certificate.

It is not project or Angular related, it's npm and registry related.

Your options are:

  1. Renew your certificate
  2. Use a different or default registry
  3. Make it so that your registry no longer requires a certificate.

Check npm config list to see your current settings

  • Related