[英]Getting 'certificate has expired' error while running meteor
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 然后運行流星。 但仍然出現錯誤。
https://docs.meteor.com/expired-certificate.html :
如果您在運行 Meteor 命令時遇到諸如 Connection error (certificate has expired) 之類的錯誤,則意味着您正在運行的 Meteor 版本低於 v1.9。
目前,一種解決方法是使用以下環境變量 NODE_TLS_REJECT_UNAUTHORIZED 運行所有流星命令,例如 ...
我懷疑你沒有正確設置環境變量。 將其export
或在命令行上正確設置:
NODE_TLS_REJECT_UNAUTHORIZED=0 meteor
我得到了同樣的錯誤
export NODE_TLS_REJECT_UNAUTHORIZED=0
試過了,它奏效了
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.