2016-12-28 17 views
0

一切似乎都很好,直到2016年12月27日Nokogiri寶石更新,這就是它在heroku日誌中所說的,我似乎無法找到如何解決它。它適用於開發,它不會推到heroku。謝謝你在前進自從最新的Nokogiri寶石更新後,無法推送到heroku

enter code here. 
-----> Ruby app detected 
-----> Compiling Ruby/Rails 
-----> Using Ruby version: ruby-2.0.0 
###### WARNING: 
     Removing `Gemfile.lock` because it was generated on Windows. 
     Bundler will do a full resolve so native gems are handled properly. 
     This may result in unexpected gem versions being used in your app. 
     In rare occasions Bundler may not be able to resolve your dependencies at all. 
     https://devcenter.heroku.com/articles/bundler-windows-gemfile 
-----> Installing dependencies using bundler 1.13.6 
     Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 
     Fetching gem metadata from https://rubygems.org/.......... 
     Fetching version metadata from https://rubygems.org/.. 
     Fetching dependency metadata from https://rubygems.org/. 
     Resolving dependencies... 
     nokogiri-1.7.0 requires ruby version >= 2.1.0, which is incompatible with the 
     current version, ruby 2.0.0p648 
     Bundler Output: Fetching gem metadata from https://rubygems.org/.......... 
     Fetching version metadata from https://rubygems.org/.. 
     Fetching dependency metadata from https://rubygems.org/. 
     Resolving dependencies... 
     nokogiri-1.7.0 requires ruby version >= 2.1.0, which is incompatible with the 
     current version, ruby 2.0.0p648 
! 
!  Failed to install gems via Bundler. 
! 
!  Push rejected, failed to compile Ruby app. 
!  Push failed 
+0

'引入nokogiri-1.7 .0需要ruby版本> = 2.1.0,這與 當前版本不兼容,ruby 2.0.0p648' –

+0

是的,我知道這是問題所在,但這裏是我的問題,如果我更新了ruby應用程序似乎打破了其他區域,所以處理起來更麻煩,而且我的gemfile中沒有nokogiri,它只是gemfile.lock中的一個依賴項。我真的不知道該怎麼辦才能解決這個問題 – neinx

+0

你可以在你的gemfile中設置對nokogiri的版本限制 – angkiki

回答

2

您可以更新您的Gemfile的版本兼容: 例如:

寶石 '引入nokogiri', '〜> 1.5.9'