Can not find jsonapi parser 0.1.1

∥☆過路亽.° 提交于 2019-12-24 01:29:34

问题


When I run rails server, 'Could not find jsonapi-parser-0.1.1.beta2' error shows up.

~/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:


bundle update jsonapi

should fix it




回答2:


jsonapi beta4 is not available. only beta5, beta 1,beta2 are available. you could find this here

Add this line in your gemfile if not and then run bundle install.

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

This might be due to the method which requires jsonparser which is not included in your rails app.



来源:https://stackoverflow.com/questions/39887721/can-not-find-jsonapi-parser-0-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!