2016-10-06 27 views
2

当我运行rails服务器时,'找不到jsonapi-parser-0.1.1.beta2'错误出现。找不到jsonapi解析器0.1.1

~/ruby_on_rails/test/sampleapp$ rails s 
Could not find jsonapi-parser-0.1.1.beta2 in any of the sources 
Run `bundle install` to install missing gems. 
~/ruby_on_rails/test/sampleapp$ bundle install 
Fetching gem metadata from https://rubygems.org/......... 
Fetching version metadata from https://rubygems.org/.. 
Fetching dependency metadata from https://rubygems.org/. 
Could not find jsonapi-0.1.1.beta4 in any of the sources 

回答

1

jsonapi beta4不可用。只有beta5,beta1,beta2可用。你可以找到这个here

如果没有,在你的gemfile中加入这行,然后运行bundle install。

gem 'jsonapi-parser', '~> 0.1.1.beta2' gem 'jsonapi', '~> 0.1.1.beta5'

这可能是由于需要未包含在您的Rails应用程序jsonparser的方法。