Jekyll几天前运行良好。我无法弄清楚发生了什么变化或无法理解该错误。我该如何解决可能是我造成的混乱?
jekyll -v
Traceback (most recent call last):
2: from /usr/local/bin/jekyll:23:in `<main>'
1: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in
`activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:289:in
`find_spec_for_exe': can't find gem jekyll (>= 0.a) with executable
jekyll (Gem::GemNotFoundException)
这是我在Mac 10.13.5 High Sierra上的设置:
Computer:~ me$ brew -v
Homebrew 1.6.9
Homebrew/homebrew-core (git revision 69b9; last commit 2018-06-29)
Computer:~ me$ brew list
autoconf libyaml pkg-config readline ruby-build
hugo openssl rbenv ruby
Computer:~ me$ which ruby
/usr/local/bin/ruby
Computer:~ me$ which gem
/usr/local/bin/gem
bundle -v
Bundler version 1.16.2
Computer:~ me$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
Computer:~ me$ gem -v
2.7.7
答案 0 :(得分:0)
您是否在Jekyll网站目录中尝试过bundle install
?
根据您粘贴的内容:
`find_spec_for_exe': can't find gem jekyll (>= 0.a) with executable
jekyll (Gem::GemNotFoundException)
看来您正在尝试安装一个不存在的版本。