如果我在 github 上签出或分叉rails 项目,运行时会出现错误,bundle install
找不到 sprockets-rails。如何安装这些 gem?
new-host-4:rails scott$ bundle install
Updating git://github.com/rails/arel.git
Updating git://github.com/brynary/rack-test.git
Updating git://github.com/rails/jquery-rails.git
Updating git://github.com/rails/coffee-rails.git
Updating git://github.com/rails/journey.git
Updating git://github.com/rails/activerecord-deprecated_finders.git
Updating git://github.com/rails/sprockets-rails.git
Updating git://github.com/fxn/sdoc.git
Fetching gem metadata from https://rubygems.org/.
Error Bundler::HTTPError during request to dependency API
Fetching full source index from https://rubygems.org/
Could not find gem 'sprockets-rails (~> 2.0) ruby', which is required by gem 'rails (>= 0) ruby', in any of the sources.