ruby - RVM list - Warning! PATH is not properly set up
问题描述
I know this has been asked many times before, however i've tried lots of suggestions to get my ruby working, but nothings worked so far.
When running rvm list, i get:
Warning! PATH is not properly set up, '/Users/tom/.rvm/gems/ruby-2.4.1/bin' is not at first place.
Usually this is caused by shell initialization files. Search for 'PATH=...' entries.
You can also re-add RVM to your profile by running: 'rvm get stable --auto-dotfiles'.
To fix it temporarily in this shell session run: 'rvm use ruby-2.4.1'.
To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.
rvm rubies
ruby-2.0.0-p648 [ x86_64 ]
ruby-2.1.0 [ x86_64 ]
=* ruby-2.4.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
.bashrc:
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$HOME/.rvm/bin:$PATH" # Add RVM to PATH for scripting
Nothing related in .bash_profile
解决方案
Try this rvm reset
Then run: rvm version
Let me Know if it still not resolved Thanks!
推荐阅读
- symfony - 错误:找不到类“Symfony\Component\Config\Resource\BCResourceInterfaceChecker”
- javascript - 如何按键提取和分组数组
- vba - 在 MS Access 中使用 VBA 将约会添加到其他人共享的 Outlook 日历
- css - Wordpress Hello Elementor Child Theme style.css 即使使用 !important 也无法正常工作
- python-3.x - Python3 Beautifulsoup4 从多个容器兄弟中提取文本
- go - go mod download 不会下载单个库;如何在不操作整个供应商缓存的情况下修改导入单个库
- c# - Unity2D不同屏幕分辨率问题
- javascript - 在多条消息中发送的 JSON 字符串。不和谐.js
- c# - 使用视图模型或 xaml c# 中的属性填充设置文件
- python-3.x - 如何从终端显示 TQDM 到 GUI 进度条?