卸载所有 gem Ruby 2.0.0 [英] Uninstalling all gems Ruby 2.0.0

查看:26
本文介绍了卸载所有 gem Ruby 2.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎 ruby​​ 2.0.0 已将默认" gem 添加到组合中,并使其无法通过 gem 卸载删除.

It seems that ruby 2.0.0 has added "default" gems to the mix and makes them non removable by gem uninstall.

如何删除所有非默认宝石?

How can you remove all non default gems?

推荐答案

我使用了这一行脚本.

for i in `gem list --no-versions`; do gem uninstall -aIx $i; done

它会忽略默认的 gem 错误并继续执行.简单明了.

It ignores default gem errors and just proceeds. Simple and self-evident.

这篇关于卸载所有 gem Ruby 2.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆