如何解决expo init失败,证书链中的SSL错误自签名证书
我一直在努力让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中都尝试过此方法。 任何其他指针...
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。