jekyll主题更改,执行bundle exec jekyll serve报错
met@bogon jekyll-theme-persephone % bundle exec jekyll serve
bundler: failed to load command: jekyll (/usr/local/bin/jekyll)
Gem::Exception: can't find executable jekyll for gem jekyll. jekyll is not currently included in the bundle, perhaps you meant to add it to your Gemfile?
/Library/Ruby/Gems/2.6.0/gems/bundler-2.1.4/lib/bundler/rubygems_integration.rb:374:in `block in replace_bin_path'
/Library/Ruby/Gems/2.6.0/gems/bundler-2.1.4/lib/bundler/rubygems_integration.rb:402:in `block in replace_bin_path'
/usr/local/bin/jekyll:23:in `<top (required)>'
解决方法:
在该jekyll主题下的gemfile文件中,加入你安装的jekyll ,最好带上版本号。
gem "jekyll", "~> 4.1.1"

查看jekyll的版本号
jekyll -v
image.png
网友评论