问题
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