找不到gem jekyll的可执行文件jekyll-无法执行Jekyll

问题描述 投票:0回答:1
bundle exec jekyll serve
Traceback (most recent call last):
    4: from /Users/Suwan_Long/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'
    3: from /Users/Suwan_Long/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
    2: from /Users/Suwan_Long/.rvm/rubies/ruby-2.6.3/bin/jekyll:23:in `<main>'
    1: from /Users/Suwan_Long/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler/rubygems_integration.rb:480:in `block in replace_bin_path'
/Users/Suwan_Long/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler/rubygems_integration.rb:460:in `block in replace_bin_path': 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? (Gem::Exception)

我已经安装了Jekyll和ruby,但是它仍然显示没有可执行的jekyll。谁能帮我这个忙!在此先感谢:)

jekyll
1个回答
0
投票

错误消息中的以下行全部说明了。

jekyll is not currently included in the bundle, perhaps you meant to add it to your Gemfile?

编辑Gemfile以包括jekyll宝石:

gem "jekyll", "~> 4.0"
© www.soinside.com 2019 - 2024. All rights reserved.