gpt4 book ai didi

jekyll - `require' : cannot load such file -- bundler (LoadError)

转载 作者:行者123 更新时间:2023-12-01 12:18:54 27 4
gpt4 key购买 nike

我是从 https://jekyllrb.com/docs/installation/ 跟进的安装 Jekyll,我确保我有 Xcode command line tools, gcc and make安装。 ruby 的版本是 2.1.1 我已经安装了 Jekyll

gem install jekyll

我收到以下成功消息
  Done installing documentation for safe_yaml, rouge, forwardable-extended, pathutil, mercenary, liquid, kramdown, ffi, rb-inotify, rb-fsevent, listen, jekyll-watch, sass-listen, sass, jekyll-sass-converter, colorator, public_suffix, addressable, jekyll after 14 seconds
19 gems installed

但是当我执行 jekyll --version
我收到以下错误
/Users/amar/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler (LoadError)
from /Users/amar/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/amar/.rvm/gems/ruby-2.1.0/gems/jekyll-3.5.2/lib/jekyll/plugin_manager.rb:46:in `require_from_bundler'
from /Users/amar/.rvm/gems/ruby-2.1.0/gems/jekyll-3.5.2/exe/jekyll:9:in `<top (required)>'
from /Users/amar/.rvm/gems/ruby-2.1.0/bin/jekyll:23:in `load'
from /Users/amar/.rvm/gems/ruby-2.1.0/bin/jekyll:23:in `<main>'
from /Users/amar/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/amar/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>

最佳答案

错误已通过再次安装新版本的 bundler 解决,我之前也安装过,但存在版本问题

gem install bundler

通过以下方式检查您的捆绑程序版本
bundler --version

如果一切正常,它将显示版本#
然后再次运行 jekyll --version一切都会好起来的

关于jekyll - `require' : cannot load such file -- bundler (LoadError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46007921/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com