安装 Jekyll 时出错 执行 gem ... (TypeError) 没有隐式转换

Error installing Jekyll While executing gem ... (TypeError) no implicit conversion

我刚开始在安装 Jekyll 时遇到这个问题,这几天一直在摸不着头脑。我已经做了很多研究来尝试解决这个错误,但到目前为止还没有找到解决方案。我已尝试重新启动进入恢复模式并 运行 禁用 csrutil 但是,那没有用。

Mac OSX 埃尔卡皮坦 版本 10.11.6

ruby 2.3.1p112(2016-04-26 修订版 54768)[x86_64-darwin15]

Jekyll 即将完成安装,但随后出现此错误。我只是不确定该怎么做?

如果有人能提供帮助,我将不胜感激。我在一些工作上落后了,但事情发生了,你必须调整。

感谢您预先帮助解决此问题。

[jekyll] 安装错误:执行时 gem ... (TypeError) 没有隐式转换

如果有任何我忘记提及的信息,请告诉我。

这里是完整安装到报错信息:

Davids-MacBook-Pro:~ David$ sudo gem install jekyll
Password:
Fetching: liquid-3.0.6.gem (100%)
Successfully installed liquid-3.0.6
Fetching: kramdown-1.11.1.gem (100%)
Successfully installed kramdown-1.11.1
Fetching: mercenary-0.3.6.gem (100%)
Successfully installed mercenary-0.3.6
Fetching: safe_yaml-1.0.4.gem (100%)
Successfully installed safe_yaml-1.0.4
Fetching: colorator-1.1.0.gem (100%)
Successfully installed colorator-1.1.0
Fetching: rouge-1.11.1.gem (100%)
Successfully installed rouge-1.11.1
Fetching: sass-3.4.22.gem (100%)
Successfully installed sass-3.4.22
Fetching: jekyll-sass-converter-1.4.0.gem (100%)
Successfully installed jekyll-sass-converter-1.4.0
Fetching: rb-fsevent-0.9.7.gem (100%)
Successfully installed rb-fsevent-0.9.7
Fetching: ffi-1.9.14.gem (100%)
Building native extensions.  This could take a while...
Successfully installed ffi-1.9.14
Fetching: rb-inotify-0.9.7.gem (100%)
Successfully installed rb-inotify-0.9.7
Fetching: listen-3.0.8.gem (100%)
Successfully installed listen-3.0.8
Fetching: jekyll-watch-1.5.0.gem (100%)
Successfully installed jekyll-watch-1.5.0
Fetching: forwardable-extended-2.6.0.gem (100%)
Successfully installed forwardable-extended-2.6.0
Fetching: pathutil-0.14.0.gem (100%)
Successfully installed pathutil-0.14.0
Fetching: jekyll-3.2.1.gem (100%)
ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String

你可以试试吗:

gem install bundler

然后

gem install jekyll

然后

bundle install
bundle exec jekyll serve

我不确定我是如何解决这个问题的,但我确实认为所有关于这个问题的帖子。我将尝试回溯并找出实际的解决方案。

谢谢