【问题标题】:Getting 'certificate has expired' error while running meteor运行流星时出现“证书已过期”错误
【发布时间】:2022-02-17 03:47:04
【问题描述】:
   While downloading accounts-base@1.2.11...:
   error: certificate has expired

   While downloading accounts-password@1.3.0...:
   error: certificate has expired

   While downloading alanning:roles@1.2.15...:
   error: certificate has expired

   While downloading aldeed:collection2@2.10.0...:
   error: certificate has expired

   While downloading aldeed:collection2-core@1.2.0...:
   error: certificate has expired

   While downloading aldeed:schema-deny@1.1.0...:

甚至尝试设置 NODE_TLS_REJECT_UNAUTHORIZED=0 然后运行流星。但是还是报错。

【问题讨论】:

    标签: visual-studio-code meteor meteor-blaze meteor-accounts angular-meteor


    【解决方案1】:

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

    如果您在运行 Meteor 命令时遇到诸如 Connection error (certificate has expired) 之类的错误,则表示您运行的是低于 v1.9 的 Meteor 版本。

    目前,一种解决方法是使用以下环境变量 NODE_TLS_REJECT_UNAUTHORIZED 运行所有流星命令,例如 ...

    我怀疑你没有正确设置环境变量。 export 或者直接在命令行设置:

    NODE_TLS_REJECT_UNAUTHORIZED=0 meteor
    

    【讨论】:

      猜你喜欢
      • 2022-12-17
      • 2021-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多