如何卸载Windows上的所有红宝石? [英] How to uninstall all ruby gems on windows?
本文介绍了如何卸载Windows上的所有红宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Windows上卸载所有ruby宝石?单行命令有可能吗?
How to uninstall all ruby gems on Windows? Is it possible with single command?
推荐答案
一行来统治他们。不需要电源外壳。从命令提示符运行:
One line to rule them all. Power shell not needed. From command prompt run:
ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }"
只需复制/粘贴即可!
这篇关于如何卸载Windows上的所有红宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文