【问题标题】:'Yarn install' cause 'trouble with network connection'“纱线安装”导致“网络连接出现问题”
【发布时间】:2017-08-21 00:35:37
【问题描述】:
yarn install v0.21.3
[1/4] Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://github.com/igorklopov/node-resolve.git: tunneling socket could not be established, cause=write EPROTO 140399640340352:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:\n".

首先我认为这可能是代理问题 所以我添加了我的公司代理设置:

yarn config set proxy http://proxy.dvfu.ru:3128
yarn config set https-proxy https://proxy.dvfu.ru:3128

但是什么也没发生,还是上面的错误。

【问题讨论】:

    标签: ruby-on-rails-4 yarnpkg react-on-rails


    【解决方案1】:

    我遇到了同样的问题并通过以下步骤解决了:

    运行终端命令

    1. npm cache clean --force
    2. set http_proxy=
    3. set https_proxy=
    4. yarn config delete proxy
    5. npm config rm https-proxy
    6. npm config rm proxy
    7. 重启终端
    8. yarn
    9. yarn –-network-timeout 100000
    10. 重新启动终端。

    它对我有用。

    【讨论】:

    • 目前无法测试,但感谢您的参与
    【解决方案2】:

    试试下面这三个命令。它对我有用。

    1. yarn config 删除代理
    2. npm config rm 代理
    3. npm config rm https-proxy

    【讨论】:

      猜你喜欢
      • 2022-10-19
      • 2019-01-01
      • 2020-04-05
      • 1970-01-01
      • 2020-09-03
      • 2021-04-05
      • 2021-08-28
      • 1970-01-01
      • 2021-03-01
      相关资源
      最近更新 更多