gpt4 book ai didi

ruby-on-rails - Gem::InstallError: gem-wrappers 在 gem 清理期间没有安装在 GEM_HOME 中

转载 作者:行者123 更新时间:2023-12-04 21:40:42 29 4
gpt4 key购买 nike

如何避免 gem 清理特定错误。我在执行 gem 清理时看到以下错误。 Gem::InstallError: gem-wrappers 未安装在 GEM_HOME 中

gem cleanup
Cleaning up installed gems...
Attempting to uninstall gem-wrappers-1.2.4
Unable to uninstall gem-wrappers-1.2.4:
Gem::InstallError: gem-wrappers is not installed in GEM_HOME, try:
gem uninstall -i /home/ec2-user/.rvm/gems/ruby-2.1.2@global gem-wrappers
Attempting to uninstall gem-wrappers-1.2.4
Unable to uninstall gem-wrappers-1.2.4:
Gem::InstallError: gem-wrappers is not installed in GEM_HOME, try:
gem uninstall -i /home/ec2-user/.rvm/gems/ruby-2.1.2@global gem-wrappers
Clean Up Complete

最佳答案

cleanup 命令从 GEM_HOME 中删除不需要满足依赖项的旧版本 gem。如果 gem 安装在 GEM_PATH 的其他地方,清理命令不会删除它。

您可以尝试使用 sudo gem cleanup引用 gem cleanup
另一个 Cleanup gems

关于ruby-on-rails - Gem::InstallError: gem-wrappers 在 gem 清理期间没有安装在 GEM_HOME 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27140985/

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