jekyll-docs没有在macOS上安装

时间:2017-01-11 09:00:48

标签: ruby macos rubygems jekyll

Jekyll's document说,

  

如果您有兴趣在旅途中浏览这些文档,请安装   jekyll-docs gem并在您的终端中运行jekyll docs

当我尝试在运行macOS Sierra的MacBook Air上安装jekyll-docs时,我遇到了以下问题:

sunqingyaos-MacBook-Air:myblog sunqingyao$ jekyll docs
You must install the 'jekyll-docs' gem to use the 'jekyll docs' command. 
sunqingyaos-MacBook-Air:myblog sunqingyao$ sudo gem install jekyll-docs
Successfully installed jekyll-docs-3.3.0
Parsing documentation for jekyll-docs-3.3.0
1 gem installed
sunqingyaos-MacBook-Air:myblog sunqingyao$ jekyll docs
You must install the 'jekyll-docs' gem to use the 'jekyll docs' command. 
sunqingyaos-MacBook-Air:myblog sunqingyao$ 

正如你所看到的,rubygems告诉我它有successfully installed jekyll-docs-3.3.0,而jekyll docs不断下降。我重新启动了终端,仍然没有工作。

1 个答案:

答案 0 :(得分:2)

有同样的问题。

在我的情况下,我有两个jekyll宝石:

sergpank$ gem list jekyll

*** LOCAL GEMS ***

jekyll (3.4.0, 3.3.1)
jekyll-docs (3.3.1)
jekyll-feed (0.8.0)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)

我只是卸载了3.4.0(因为没有jekyll-docs-3.4.0):

sergpank$ gem uninstall jekyll -v 3.4.0
Successfully uninstalled jekyll-3.4.0

---------------------------------------

sergpank$ gem list jekyll

*** LOCAL GEMS ***

jekyll (3.3.1)
jekyll-docs (3.3.1)
jekyll-feed (0.8.0)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)

jekyll docs 成功启动之后!