我所做的只是尝试按照 Jekyll 网站上的说明进行操作。我遇到了一个我不知道如何解决的错误。
~ $ gem install jekyll
~ $ jekyll new my-awesome-site
~ $ cd my-awesome-site
当我收到错误时:
error: undefined method `gsub' for nil:NilClass. Use --trace to view backtrace
跟踪结果:
/Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/jekyll-1.1.2/lib/jekyll/stevenson.rb:77:in `message': undefined method `gsub' for nil:NilClass (NoMethodError)
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/jekyll-1.1.2/lib/jekyll/stevenson.rb:56:in `error'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/jekyll-1.1.2/lib/jekyll/stevenson.rb:66:in `abort_with'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/jekyll-1.1.2/bin/jekyll:41:in `block (2 levels) in <top (required)>'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/command.rb:180:in `call'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/command.rb:180:in `call'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/command.rb:155:in `run'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/runner.rb:402:in `run_active_command'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/runner.rb:78:in `run!'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/delegates.rb:11:in `run!'
from /Users/rruiz/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.4/lib/commander/import.rb:10:in `block in <top (required)>'
我该如何解决这个问题,以便 Jekyll 工作?