Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSeth Kroger
56,413 PointsIf 'jekyll -v' gives you the error "cannot load such file -- jekyll/version" try 'gem cleanup'
Putting this fix out there for anyone who gets the same error I did after installing.
4 Answers
Stu Cowley
26,287 PointsThis also helped with the jekyll: command not found issue I was tearing my hair out over.
Thanks Seth!
Guil Hernandez
Treehouse TeacherThank you, Seth Kroger! :)
Kevin Lozandier
Courses Plus Student 53,747 PointsGuil Hernandez Stu Cowley Seth Kroger Doesn't work for me; for problems like this, it's probably going to require adding jekyll to the user's preferred command prompt (zsh
, bash
, fish
, & etc).
This is unfortunately a common problem if users use rbenv
, rvm
& so on because jekyll way of installing with environments with these Ruby managers has quirks most novices of such tools will not be able to debug intuitively.
This is what I generally do for rbenv
for example.
yuehwencheng
29,154 PointsI couldn't get Jekyll installed either, but I didn't see any error. In fact, my terminal returned successfully installation even though "Jekyll -v" remained unrecognizable command for my environment.
Here are processes/tricks I tried to get Jekyll installed:
- gem update
//this step could really take a "while", approx. 2-3 episodes from Treehouse Friend, even though respectively speaking, I doubt the necessity for this step. - install rbenv and Jekyll
//ref. https://talk.jekyllrb.com/t/cant-run-jekyll-on-mac-os-x-10-11-el-capitan/1284/2
- reinstall home-brew
- make sure global ruby version is consistent with chosen version installed by rbenv //ref. http://stackoverflow.com/questions/30288171/os-x-10-9-when-installing-ruby-2-2-2-rbenv-cannot-globally-change-default-ruby
- sudo su and then gem install Jekyll