如何卸载 Ruby on Rails 并进行全新安装?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4581776/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 23:59:57  来源:igfitidea点击:

How do I uninstall Ruby on Rails and do a clean install?

ruby-on-railsrubyinstallrvm

提问by william tell

I'm following a Rails tutorial. I'm having version problems with RVM and am getting lots of errors. I would like to start over with a clean version of Ruby, Rails, Gemfiles, etc.

我正在学习 Rails 教程。我遇到了 RVM 的版本问题,并且出现了很多错误。我想从一个干净版本的 Ruby、Rails、Gemfiles 等开始。

Can anyone give me some brief instructions on how to uninstall my Ruby-on-Rails environment?

谁能给我一些关于如何卸载我的 Ruby-on-Rails 环境的简短说明?

回答by Erick

Try this:

尝试这个:

rvm get head
rvm reset
rvm remove ... # take the output of rvm list and do rvm remove for each item in the list
rvm cleanup
rvm repair
rvm notes # make sure that you've got all the dependencies mentioned in the output from this command
rvm install ... # reinstall your rubies

This is likely overkill, but it should get you close to a known-good configuration. If it doesn't, try:

这可能有点矫枉过正,但它应该能让您接近已知良好的配置。如果没有,请尝试:

rvm implode

That will completely remove RVM and you can start over from scratch.

这将完全删除 RVM,您可以从头开始。

If none of this works or you are still confused, paste some of the error messages here and tell more about your operating system and configuration details.

如果这些都不起作用或者您仍然感到困惑,请在此处粘贴一些错误消息并详细说明您的操作系统和配置详细信息。

Good luck!

祝你好运!