问题
Using jekyll -v
returns the following:
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:308:in 'to_specs': Could not find 'jekyll' (>= 0) among 21 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/Users/myusername/.rvm/gems/ruby-2.4.2:/Users/myusername/.rvm/gems/ruby-2.4.2@global', execute 'gem env' for more information from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:320:in 'to_spec' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:65:in 'gem' from /usr/local/bin/jekyll:22:in `'
What's going on?
回答1:
it seems that you don't have the jekyll gem installed, try installing it with
gem install jekyll
and remember that if you are using rvm, you need to select the version you will use in that terminal session,
rvm use x.x.x
or set the default, so everytime you open a terminal, then a version to use is set by default
rvm --default use x.x.x
来源:https://stackoverflow.com/questions/47046419/could-not-find-jekyll-0