When I try to download jekyll it says permission Thdenied


This is specifically what it said:

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

What happened?


We'll look around for someone who hasn't done the module yet and see if they can work through it without issue. If they repeat the issue, then we have a problem that is reproducable and we can report it.


I tried this course from beginning just now and on exercise 3 (that's where you are stuck I suppose?), I passed as expected by the exercise:

@OP: Did you try reloading the page and trying multiple times? Tried clearing cache? Cookies?


That's on a mac, and that directory is probably owned by root.

Add --user-install

$ gem install --help | grep -A1 user-install
        --[no-]user-install          Install in user's home directory instead
                                     of GEM_HOME.


Thanks, That worked.


I am having the same problem. what portion of that do I type on terminal


First you type:

gem install jekyll --user-install


$ gem install --help | grep -A1 user-install


The second command doesn't do anything besides printing two lines!

gem install --help will print lots of text. I take that text and feed it to grep, telling grep to look for text matching the option.

In other words, I searched through the help text.

A lot of programs have a --help option where you can look up what various options do which is particularly useful to check before running commands that are just copied from somebody else.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.