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

时间:2016-08-04 12:47:01

标签: ruby jekyll

我刚刚开始安装Jekyll时出现这个问题,现在已经抓了几天了。我已经做了很多关于尝试解决此错误的研究但尚未找到解决方案。我已经尝试重新启动到恢复模式并运行csrutil禁用,但是,这不起作用。

Mac OSX EL Capitan 版本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

2 个答案:

答案 0 :(得分:0)

你可以尝试:

gem install bundler

然后

gem install jekyll

然后

bundle install
bundle exec jekyll serve

答案 1 :(得分:-1)

我不确定我是如何解决这个问题的,但我确实认为所有发布在这个问题上的人。我会尝试回溯并找出实际的解决方案。

由于