ruby-on-rails-4 - “ yarn 安装”原因 'trouble with network connection'

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

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

但是什么也没发生,上面仍然有错误。

最佳答案

请尝试下面这三个命令。它为我工作。

  • yarn配置删除代理
  • npm配置rm代理
  • npm配置rm https-proxy
  • 关于ruby-on-rails-4 - “ yarn 安装”原因 'trouble with network connection',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43061045/

    相关文章:

    ruby-on-rails - 我无法访问 Rails 控制台

    github - Yarn 找不到私有(private) Github npm 注册表

    javascript - Google Places 自动完成 React 组件

    sql - 同时从数据库中检索多种不同类型的模型

    ruby-on-rails - 在自定义设备邮件程序中生成确认 URL

    javascript - npm 错误!不支持的 URL 类型 "workspace:": workspace:*

    mysql - 有没有办法从 Ruby-on-Rails 模型中获取数据库中的数据

    rspec-rails - Rails 4 数据库清理器

    reactjs - react 脚本 : not found when building docker image in CI, 但在本地工作