【问题标题】:request to https://registry.npmjs.org/expo-template-blank failed, reason: connect ETIMEDOUT 104.16.21.35:443对 https://registry.npmjs.org/expo-template-blank 的请求失败,原因:连接 ETIMEDOUT 104.16.21.35:443
【发布时间】:2019-10-23 09:51:16
【问题描述】:

我在尝试安装 expo init rn-first-app时遇到此错误。

你能帮帮我吗?

【问题讨论】:

    标签: reactjs react-native expo


    【解决方案1】:

    你可以试试这个方法

    npm config set strict-ssl false
    

    然后

    expo init rn-first-app
    

    【讨论】:

      【解决方案2】:

      有时候你可能在代理后面,试试下面的方法。

      1. 你必须在环境变量中设置你的代理作为这个图像。 windows env setup image

      2. 然后使用以下两个命令设置您的代理。

        npm config 设置代理 http://proxy-server:port

        npm 配置设置 https-proxy http://proxy-server:port

      【讨论】:

        【解决方案3】:

        原因 01:确保您的开发设备已连接到互联网 原因02:确保你已经安装了npm install expo-cli --global

        重新连接互联网重试

        【讨论】:

          猜你喜欢
          • 2022-06-21
          • 2019-11-02
          • 2021-02-03
          • 2019-07-03
          • 1970-01-01
          • 2019-07-23
          • 1970-01-01
          • 2020-01-28
          • 2018-07-04
          相关资源
          最近更新 更多