Uninstall Rails completely

后端 未结 9 1487
轮回少年
轮回少年 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: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 
    

提交回复
热议问题