Could not find 'jekyll' (>= 0)

这一生的挚爱 提交于 2020-03-05 04:26:08

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!