"Parsing documentation for jekyll-4.2.1" fails after "gem install --user-install jekyll"

I’m doing a fresh jekyll install on a mac running OS X 12.0.1 (21A559). The ruby is 2.6.8. It’s the system version. “Parsing documentation for jekyll-4.2.1” is failing on a null pointer dereference.

I’d be grateful for thoughts.

lucasgonze@Lucass-MacBook-Air xspf-website % gem install --user-install bundler jekyll
Successfully installed bundler-2.2.32
Parsing documentation for bundler-2.2.32
Done installing documentation for bundler after 5 seconds
Successfully installed jekyll-4.2.1
Parsing documentation for jekyll-4.2.1
Before reporting this, could you check that the file you're documenting
has proper syntax:

  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -c lib/jekyll/commands/doctor.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

	(NoMethodError) undefined method `[]' for nil:NilClass

ERROR:  While executing gem ... (NoMethodError)
    undefined method `[]' for nil:NilClass

Try Jekyll 4.1

Also I avoid Jekyll globally and rather install it per project in Gemfile so I can upgrade projects independently from say 4.1 to 4.2 and also have other projects on Jekyll 3 still.

1 Like

Good advice, @MichaelCurrin . It worked.

1 Like