I install RVM by this tutorial and on the step number 4 echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" ' >> ~/.bash_profile I got this one error
-bash: /Users/my_name/.bash_profile: Permission denied
I tried it run with the sudo, but I am still getting this error
Don’t use sudo for rvm installs if you don’t want a global install.
To fix a permission error like this, check the current permissions on that file:
It should be owned by the
my_nameuser and have read and write access. If it’s not, change the ownership like so:and any potential permission errors with
If you ever used root to install your user’s rvm, fix it like this: