expo init失败,证书链中的SSL错误自签名证书

时间:2020-08-16 10:49:15

标签: node.js ssl npm expo

我一直在努力让EXPO的启动工作没什么运气。

尝试设置环境变量

set NODE_TLS_REJECT_UNAUTHORIZED=0

还要设置节点配置

npm config set strict-ssl false

尽管如此,我仍然遇到相同的错误。

> expo init AwesomeProject --template expo-template-tabs
(node:22664) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
[12:33:31] request to https://registry.npmjs.org/expo-template-tabs failed, reason: self signed certificate in certificate chain
[12:33:31] FetchError: request to https://registry.npmjs.org/expo-template-tabs failed, reason: self signed certificate in certificate chain

我在Command Prompt和Git bash中都尝试过此方法。 任何其他指针...

0 个答案:

没有答案