在运行bundle install之后,我得到了这个错误:
Gem::Package::FormatError: no metadata found in /Users/jeanosorio/.rvm/gems/ruby-1.9.3-p286/cache/libv8-3.11.8.13-x86_64-darwin-12.gem
An error occurred while installing libv8 (3.11.8.13), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling.我试着用
gem install libv8 -v '3.11.8.13'但我得到了
ERROR: Error installing libv8:
invalid gem format for /Users/jeanosorio/.rvm/gems/ruby-1.9.3-p286/cache/libv8-3.11.8.13-x86_64-darwin-12.gem这里的问题是什么?请帮帮忙。
发布于 2013-02-10 11:38:04
Gem::Package::FormatError: no metadata found in ...错误消息表明Ruby的缓存目录的内容与实际的gem存储库不同步。
通过删除有问题的文件或完整的缓存文件夹,然后再次运行bundle install,可以修复此错误。
首先尝试删除违规文件:
rm ~/.rvm/gems/ruby-1.9.3-p286/cache/libv8-3.11.8.13-x86_64-darwin-12.gem
bundle install这应该可以解决这个问题。如果没有,请删除完整的缓存文件夹:
rm -rf ~/.rvm/gems/ruby-1.9.3-p286/cache/
bundle install参考:
RubyGems issue on OSX此外,正如在this answer中提到的那样,使用gem update --system更新rubygems版本可能是值得的
https://stackoverflow.com/questions/14776685
复制相似问题