Things to keep in mind when installing Jekyll on Windows and loading themes! !! Need tzinfo !!

Things to keep in mind when installing Jekyll on Windows and loading themes

cmd


PS C:\Users\----\Documents\blog\beautiful-jekyll-master> bundle exec jekyll serve
  fatal: not a git repository (or any of the parent directories): .git
  Configuration file: C:/Users/hideki/Documents/blog/beautiful-jekyll-master/_config.yml
  Dependency Error: Yikes! It looks like you don't have tzinfo or one of its dependencies installed. In order to use 
  Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such 
  file -- tzinfo' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
  jekyll 3.8.7 | Error:  tzinfo

If you get such an error, rewrite beautiful-jekyll-master / Gemfile as follows.

beautiful-jekyll-master/Gemfile


# frozen_string_literal: true

source "https://rubygems.org"

gem 'tzinfo', '~> 2.0'
gem 'tzinfo-data', '~> 1.2020', '>= 1.2020.1'

gemspec

With this again

cmd


PS> bundle install 

If you do, it should work.

Experienced error

I got the above error, so I added tzinfo and gem installed it, but it didn't work. It seems that tzinfo-data is necessary for windows, so I gem installed it, but it didn't work. Finally, I installed it all at once using the above method and it worked.

Recommended Posts

Things to keep in mind when installing Jekyll on Windows and loading themes! !! Need tzinfo !!
Things to keep in mind when committing to CRuby
Things to keep in mind when combining if statements and logical operators
Things to keep in mind when adding war to dependency
Things to keep in mind when using if statements
N things to keep in mind when reading "Introduction to Spring" and "Introduction to Spring" in the Reiwa era
Things to keep in mind when testing private methods in JUnit
Things to keep in mind when using Sidekiq with Rails
Things to keep in mind when using Apache PDFBox® with AWS Lambda
Things to remember and concepts in the Ruby on Rails tutorial
[Java Bronze] 5 problems to keep in mind
[Comma (,) is strictly prohibited in the address! ] Things to keep in mind when applying for an exam at Pearson VUE