gpt4 book ai didi

ruby-on-rails - 由于 Bundler::GemspecError: 无法读取 gem 导致 bundle 安装失败

转载 作者:数据小太阳 更新时间:2023-10-29 07:01:13 26 4
gpt4 key购买 nike

我在安装 bundle 时遇到这些错误:

 ✗ bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...

Bundler::GemspecError: Could not read gem at /Users/liuxin/.rvm/gems/ruby-1.9.3-p547/cache/i18n-0.6.11.gem. It may be corrupted.
An error occurred while installing i18n (0.6.11), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.6.11'` succeeds before bundling.

✗ gem install i18n -v '0.6.11'
ERROR: Error installing i18n:
invalid gem: package metadata is missing in /Users/liuxin/.rvm/gems/ruby-1.9.3-p547/cache/i18n-0.6.11.gem

✗ rvm list

rvm rubies

=* ruby-1.9.3-p547 [ x86_64 ]
ruby-2.1.2 [ x86_64 ]

最佳答案

似乎 bundler 去缓存 gem,所以只需删除缓存的 gem,然后再试一次安装 gem:

$ rm -f /Users/liuxin/.rvm/gems/ruby-1.9.3-p547/cache/i18n-0.6.11.gem
$ gem install i18n

关于ruby-on-rails - 由于 Bundler::GemspecError: 无法读取 gem 导致 bundle 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27415904/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com