簡體   English   中英

捆綁安裝在rails fork上不起作用

[英]bundle install not working on rails fork

如果我在github上簽出或分叉rails項目 ,則在運行bundle install時會收到錯誤消息,指出找不到鏈輪軌道。 如何安裝這些寶石?

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.

試試這個在您的gem文件中寫

gem "sprockets-rails", "1.0.0"

然后,捆綁安裝

OK,那么您想走這條路: https : //github.com/rails/rails-dev-box ...在積極的開發過程中,rails倉庫無法與bundler一起安裝。

http://status.rubygems.org

Rubygems的痛苦和問題不斷增長。 目前,依賴項API已關閉。 因此,這是嘗試通過rubygems解決依賴關系的失敗。 作為解決方案,您可以在計算機上手動安裝所有要求,然后捆綁軟件應使用本地副本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM