Getting 'certificate has expired' error while running meteor
Asked Answered
R

2

6
   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.

Robinet answered 16/2, 2022 at 19:4 Comment(0)
M
12

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
Marashio answered 16/2, 2022 at 19:46 Comment(0)
X
5

I got the same error

export NODE_TLS_REJECT_UNAUTHORIZED=0

tried this and it worked

Xanthophyll answered 14/7, 2022 at 4:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.