ERROR: Could not find a valid gem '2.12.3' (>= 0) in any repository

懵懂的女人 提交于 2019-12-13 04:48:02

问题


When I try to run:

gem install sprockets 2.12.3

It says I have successfully installed sprockets but I have an error:

Successfully installed sprockets-2.12.3

Parsing documentation for sprockets-2.12.3

Done installing documentation for sprockets after 1 seconds

ERROR: Could not find a valid gem '2.12.3' (>= 0) in any repository

1 gem installed

I was wondering whether anyone knew how to fix this problem??

Thank you.


回答1:


You need to specify version with -v flag

gem install sprockets -v 2.12.3

Also depending on ruby version you're using, this might be helpful:

gem install sprockets:2.12.3

If you have another version of the gem already installed, you might want uninstall it first, gem uninstall



来源:https://stackoverflow.com/questions/27762802/error-could-not-find-a-valid-gem-2-12-3-0-in-any-repository

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