美文网首页
bundler: failed to load command:

bundler: failed to load command:

作者: 生命不止运动不息 | 来源:发表于2020-10-09 23:09 被阅读0次

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"

image.png

查看jekyll的版本号

jekyll -v


image.png

相关文章

网友评论

      本文标题:bundler: failed to load command:

      本文链接:https://www.haomeiwen.com/subject/rlnrpktx.html