$PATH is not properly set up

狂风中的少年 提交于 2019-12-06 16:48:26

Put RVM code at the start of $PATH

I just had the same problem. I went to terminal and entered subl ~/ which opens up your home folder on Sublime Text (or you can use another text editor).

I then clicked on every file starting with ., e.g. .bash_profile, .bashrc, .mkshrc, .zshrc

Whenever I saw this line:

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

I changed it to this:

export PATH="$HOME/.rvm/bin:$PATH" # Add RVM to PATH for scripting

That way, the RVM code is at the start of $PATH. Then I quit Terminal and started it up again to make sure those config files were loaded.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!