2016-03-22 70 views
0

林根據他們的手工試圖設置專櫃:tryshoppe.com錯誤上包括寶石「專櫃」

爲此我使用Rails 4.0.1與RVM紅寶石2.0.0p643。

在專櫃的gerenation:設置,或只是「軌道C」我得到以下錯誤:

/usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'shoppe'. (Bundler::GemRequireError) 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler.rb:99:in `require' 
    from /tmp/foo/config/application.rb:7:in `<top (required)>' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.1/lib/rails/commands.rb:60:in `require' 
    from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.1/lib/rails/commands.rb:60:in `<top (required)>' 
    from bin/rails:4:in `require' 
    from bin/rails:4:in `<main>' 

我不明白這一點。我雖然嘗試過使用ruby 2.2和更新的rails,導致相同的錯誤。

這是Gemfile中:

source 'https://rubygems.org' 

gem 'shoppe' 

gem 'rails', '4.0.1' 
gem 'sqlite3' 
gem 'sass-rails', '~> 4.0.0' 
gem 'uglifier', '>= 1.3.0' 
gem 'coffee-rails', '~> 4.0.0' 
gem 'jquery-rails' 
gem 'turbolinks' 
gem 'jbuilder', '~> 1.2' 

group :doc do 
    gem 'sdoc', require: false 
end 
+0

您是否確認過當您將光盤放入項目文件夾時,正確版本的紅寶石會被加載。嘗試使用gemset並使用.rvmrc加載正確的設置。 nvr使用專櫃所以不能說任何問題與寶石加載具體 – Bijendra

+1

像這樣嘗試使用'bundle exec rake db:migrate shoppe:setup' –

+0

它的失敗:'Bundler :: GemRequireError:嘗試加載時出錯寶石'專櫃' – HappyHacking

回答

1

如果您使用最新的預發佈版或發佈候選版本捆紮機(通過gem install bundler --pre),它應該有它的這種變化:https://github.com/bundler/bundler/pull/4187

這種變化應該允許您查看原始錯誤上下文,而不僅僅是通用的,無益的Bundler::GemRequireError

+0

其實就是這樣!非常感謝。我的問題是'寶石加載錯誤是:無法找到JavaScript運行時.'我可以看到你的修復。 – HappyHacking