【发布时间】:2016-05-05 14:16:51
【问题描述】:
我想更新一个 jekyll 网站 - 但在尝试“jekyll serve”时,我现在得到:
WARN: Unresolved specs during Gem::Specification.reset:
jekyll-watch (~> 1.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /home/ligi/git/espass.github.io/_config.yml
jekyll 3.0.1 | Error: undefined method `map!' for nil:NilClass
bundle exec jekyll serve 也会失败
➜ espass.github.io git:(master) ✗ bundle exec jekyll serve
Configuration file: /home/ligi/git/espass.github.io/_config.yml
jekyll 3.0.1 | Error: undefined method `map!' for nil:NilClass
有人知道如何追踪这个错误吗?在互联网上找不到任何关于它的信息,我有点卡在这里
编辑:
➜ espass.github.io git:(master) ✗ bundle exec jekyll serve --trace
Configuration file: /home/ligi/git/espass.github.io/_config.yml
/usr/lib/ruby/vendor_ruby/jekyll/configuration.rb:246:in `block in backwards_compatibilize': undefined method `map!' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/vendor_ruby/jekyll/configuration.rb:238:in `each'
from /usr/lib/ruby/vendor_ruby/jekyll/configuration.rb:238:in `backwards_compatibilize'
from /usr/lib/ruby/vendor_ruby/jekyll/configuration.rb:189:in `read_config_files'
from /var/lib/gems/2.3.0/gems/jekyll-3.0.5/lib/jekyll.rb:101:in `configuration'
from /usr/lib/ruby/vendor_ruby/jekyll/command.rb:42:in `configuration_from_options'
from /var/lib/gems/2.3.0/gems/jekyll-3.0.5/lib/jekyll/commands/build.rb:29:in `process'
from /var/lib/gems/2.3.0/gems/jekyll-3.0.5/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `block in execute'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `each'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `execute'
from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in `go'
from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in `program'
from /var/lib/gems/2.3.0/gems/jekyll-3.0.5/bin/jekyll:17:in `<top (required)>'
from /usr/local/bin/jekyll:23:in `load'
from /usr/local/bin/jekyll:23:in `<main>'
【问题讨论】:
-
@DavidJacquel 这不是一个重复 - 我的问题不是缺少的 dep 而是 nilpointer
-
你可以尝试重新安装你的 gems。
-
在“sudo gem cleanup && bundle install”之后得到同样的错误
-
任何可用的存储库网址?
标签: jekyll