升级到 macOS Sierra (10.12) 后 Jekyll 出现各种问题。运行jekyll build
失败并出现此错误(这一直发生在我身上):/Library/Ruby/Gems/2.0.0/gems/bundler1.12.5/lib/bundler/runtime.rb:35:in block in setup: You have already activated colorator 1.1.0, but your Gemfile requires colorator 0.1. Prepending
bundle exec to your command may solve this. (Gem::LoadError)
。
过去运行bundle exec jekyll serve
已经解决了这个问题,但是现在当我运行它时,我得到了错误:
Liquid Exception: cannot load such file -- rouge in _posts/2015-12-20-welcome-to-jekyll.markdown
bundler: failed to load command: jekyll (/usr/local/bin/jekyll)
LoadError: cannot load such file -- rouge
第一个想法是尝试重新安装 rouge, so ran sudo gem install rouge
,但这并没有做任何事情。还尝试卸载并重新安装 jekyll。我还检查了/usr/local/bin/jekyll
路径,并且 jekyll 在那里。不太确定如何解决此问题(或问题是什么)。想法?