我从这个 repository 安装了一个 gem在我的 Gemfile 中使用它:
gem 'copy_carrierwave_file', github: 'equivalent/copy_carrierwave_file'
当我尝试使用 :
卸载它时gem uninstall copy_carrierwave_file
没有显示像 copy_carrierwave is uninstalled successful from....
然后如果我输入:
bundle show copy_carrierwave_file
它仍然告诉我这颗 gem 的位置
如何卸载它?
最佳答案
由于 git、github 和路径定位,或开发 gems 由 bunlder 控制,您只需从 Gemfile 中删除 put 即可删除 gem。您甚至不需要再次运行 bundle install
。
$ bundle show session
Could not find gem 'session'.
关于ruby - 为什么不卸载这个 gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20886122/