Uninstall Rails completely

后端 未结 9 1477
轮回少年
轮回少年 2020-12-07 20:51

I’m trying to uninstall Rails completely, but I can’t get the grip of it.

Here’s what I tried:

$ gem update
rails 4.0.0.beta1 instal         


        
相关标签:
9条回答
  • 2020-12-07 21:21

    you just try this command.it will help to uninstall all rails "gem uninstall railties" I think this is the only method to fully uninstall all rails

    0 讨论(0)
  • 2020-12-07 21:24
    sudo gem uninstall rails -v 4.0.0.beta1
    

    It should help.

    0 讨论(0)
  • 2020-12-07 21:24

    First you should understand what is the location of rails. Type in your console (bash, zsh, etc.)

    which rails
    

    If it's located in your home folder, like:

    /home/your_name/.rvm/gems/ruby-1.9.3-p392/bin/rails
    

    Then, you should remove it using local gem:

    gem uninstall rails
    

    Otherwise, you probably have to use sudo:

    sudo gem uninstall rails
    

    NOTE: you can check your rails versions as following:

    Local:

    gem list rails 
    

    Global:

    sudo gem list rails 
    
    0 讨论(0)
提交回复
热议问题