I am trying to install ruby on rails in a user named Test
in Ubuntu2004 (Windows Subsystem). Following steps in this website: https://gorails.com/setup/windows/10
However, I kept getting error from the following step:
git clone https://github.com/excid3/asdf.git ~/.asdf
Error:
fatal: could not create leading directories of '/home/Test/.asdf': Permission denied
What should I do to get past this step?
I am hoping someone could walk me through steps I should do to install ruby on rails successfully.
2
Answers
I did
sudo -E bash
and solved this issue
It is a permission error.
You just have to run it as an administrator and you are good to go.