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.
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