skip to Main Content

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


  1. Chosen as BEST ANSWER

    I did

    sudo -E bash

    and solved this issue


  2. It is a permission error.

    You just have to run it as an administrator and you are good to go.

    sudo git clone https://github.com/excid3/asdf.git ~/.asdf
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search