安装gem'bootstrap-sass','〜> 2.0.0'

时间:2014-04-26 16:12:38

标签: ruby-on-rails ruby twitter-bootstrap gem

我正在使用ruby和rails并安装此gem:

gem 'bootstrap-sass', '~> 2.0.0'

使用bundle install时出现此错误:

Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Connection timed out - connect(2) for "s3.amazonaws.com" port 443 (https://rubygems.org/gems/bootstrap-sass-2.0.4.2.gem)
An error occurred while installing bootstrap-sass (2.0.4.2), and Bundler cannot continue.
Make sure that `gem install bootstrap-sass -v '2.0.4.2'` succeeds before bundling.

1 个答案:

答案 0 :(得分:1)

在Gemfile中更改你的gem source

source 'http://rubygems.org'

然后给bundle install

在Gemfile第一行添加行

source 'http://rubygems.org'