我正在使用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.
答案 0 :(得分:1)
在Gemfile中更改你的gem source
:
source 'http://rubygems.org'
然后给bundle install
。
在Gemfile第一行添加行
source 'http://rubygems.org'