Could not find 'jekyll' (>= 0)

2019-08-19 06:19发布

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?

标签: ruby jekyll rvm
1条回答
贪生不怕死
2楼-- · 2019-08-19 06:44

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
查看更多
登录 后发表回答