Monday, November 08, 2021

Warning! PATH is not properly set up

Warning! PATH is not properly set up, /Users/n1576925/.rvm/gems/ruby-3.0.2/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-3.0.2

         To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.

In MacOS Monterey, add the following to .bash_profile:

# RVM can encounter errors if it's not the last thing in .bash_profile

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to path for scripting (to manage Ruby versions)

export PATH="$GEM_HOME/bin:$PATH"

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

The .zshrc has only one line:

source ~/.bash_profile