[关闭]
@veightz 2015-07-02T08:52:24.000000Z 字数 714 阅读 2789

bundle install 安装依赖失败

未分类


今天安装 RoR , 执行

  1. bundle install

之后, 出现了一下内容。

  1. Fetching gem metadata from https://rubygems.org/............
  2. Fetching additional metadata from https://rubygems.org/..
  3. Resolving dependencies...
  4. /* ... */
  5. Gem::RemoteFetcher::FetchError: Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/debug_inspector-0.0.2.gem)
  6. An error occurred while installing debug_inspector (0.0.2), and Bundler cannot
  7. continue.
  8. Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before
  9. bundling.

看了下 Gemfile, 这些依赖也是间接依赖。
执行了下对应的安装,挺顺畅的,没什么问题。
看了下我 gem 的源,

  1. > gem source -l
  2. *** CURRENT SOURCES ***
  3. http://ruby.taobao.org/

似乎也没问题。

我还特意去改了下 npm 的源, 指向了淘宝的仓库。似乎还是没什么 用。

然后突然发现 Gemfile 头顶一句

  1. source 'https://rubygems.org/'

所以,改成这样吧:

  1. source 'https://ruby.taobao.org/'
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注