Getting 'certificate has expired' error while running meteor

2.9k Views Asked by At
   While downloading [email protected]...:
   error: certificate has expired

   While downloading [email protected]...:
   error: certificate has expired

   While downloading alanning:[email protected]...:
   error: certificate has expired

   While downloading aldeed:[email protected]...:
   error: certificate has expired

   While downloading aldeed:[email protected]...:
   error: certificate has expired

   While downloading aldeed:[email protected]...:

Even tried set NODE_TLS_REJECT_UNAUTHORIZED=0 and then run meteor. But still getting error.

2

There are 2 best solutions below

0
Christian Fritz On

https://docs.meteor.com/expired-certificate.html:

If you are getting errors like Connection error (certificate has expired) when running Meteor commands it means that you are running a version of Meteor older than v1.9.

A workaround, for now, is to run all the meteor commands with the following environment variable NODE_TLS_REJECT_UNAUTHORIZED, for example ...

I suspect you didn't set the env var correctly. Either export it or set it right on the command line:

NODE_TLS_REJECT_UNAUTHORIZED=0 meteor
0
Srushti Shah On

I got the same error

export NODE_TLS_REJECT_UNAUTHORIZED=0

tried this and it worked