Jekyll -v error (Bundler::GemNotFound)

2019-08-19 02:12发布

When running jekyll -v I get the following:

/Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in 'block in materialize': Could not find jekyll-feed-0.9.2 in any of the sources (Bundler::GemNotFound)
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'map!'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'materialize'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:170:in 'specs'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:237:in 'specs_for'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:226:in 'requested_specs'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:108:in 'block in definition_method'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:20:in 'setup'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler.rb:107:in 'setup'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/jekyll-3.6.2/lib/jekyll/plugin_manager.rb:50:in 'require_from_bundler'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/jekyll-3.6.2/exe/jekyll:11:in '<top (required)>'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/jekyll:23:in 'load'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/jekyll:23:in '<main>'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in 'eval'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in '<main>'

Update:

After using gem install jekyll-feed I get the following:

/Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in 'block in materialize': Could not find minima-2.1.1 in any of the sources (Bundler::GemNotFound)
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'map!'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'materialize'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:170:in 'specs'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:237:in 'specs_for'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/definition.rb:226:in 'requested_specs'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:108:in 'block in definition_method'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:20:in 'setup'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler.rb:107:in 'setup'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/jekyll-3.6.2/lib/jekyll/plugin_manager.rb:50:in 'require_from_bundler'
from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/jekyll-3.6.2/exe/jekyll:11:in '<top (required)>'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/jekyll:23:in 'load'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/jekyll:23:in '<main>'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in 'eval'
from /Users/myusername/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in '<main>'

2条回答
SAY GOODBYE
2楼-- · 2019-08-19 02:42

It seems that you don't have another gem installed, try with this to install it

gem install jekyll-feed
查看更多
姐就是有狂的资本
3楼-- · 2019-08-19 02:44

You're having a bunch of related issues around dependencies. To make sure it all works itself out, add a Gemfile with the contents:

source "https://rubygems.org"

ruby "2.4.2"

gem 'github-pages' # helpfully pulls in more than just jekyll

and then run bundle. Then when you want to run jekyll, do bundle exec jekyll, and you should be fine.

查看更多
登录 后发表回答