Jekyll 3.7.3 | Error: No source of timezone data could be found
Jekyll 3.7.3 | Error: No source of timezone data could be found
Configuration file: C:/Users/NiKhil GarakaPati/Documents/GitHub/Nikhil-
Garakapati.github.io/_config.yml
jekyll 3.7.3 | Error: No source of timezone data could be found.
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving
this error.
我在将 Jekyll 模板安装到我的 Github 页面时遇到此错误。我尝试将此 timezone: "America/Vancouver" 添加到我的 _config.yml 文件中,但是没有用。然后我尝试 运行 gem 在我的终端上安装 tzinfo-data,但没有清除错误。
谁能解决这个问题?
根据文件路径的结构,我猜您在 Windows 机器上。 tzinfo-data
gem 对 Windows 的工作有点挑剔。下面是 docs 如何解决它。
If you are using Ruby on Rails and your project was created on Windows, then you may find that there is already a line in your Gemfile like the following:
gem 'tzinfo-data', platforms: [:mingw, :mswin]
If you are using a 64-bit version of Ruby on Windows, then add :x64_mingw
to the list of platforms as follows:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
因此,如果您使用的是 gemfile
,请务必将 gem 放入文件中。
Configuration file: C:/Users/NiKhil GarakaPati/Documents/GitHub/Nikhil-
Garakapati.github.io/_config.yml
jekyll 3.7.3 | Error: No source of timezone data could be found.
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving
this error.
我在将 Jekyll 模板安装到我的 Github 页面时遇到此错误。我尝试将此 timezone: "America/Vancouver" 添加到我的 _config.yml 文件中,但是没有用。然后我尝试 运行 gem 在我的终端上安装 tzinfo-data,但没有清除错误。
谁能解决这个问题?
根据文件路径的结构,我猜您在 Windows 机器上。 tzinfo-data
gem 对 Windows 的工作有点挑剔。下面是 docs 如何解决它。
If you are using Ruby on Rails and your project was created on Windows, then you may find that there is already a line in your Gemfile like the following:
gem 'tzinfo-data', platforms: [:mingw, :mswin]
If you are using a 64-bit version of Ruby on Windows, then add
:x64_mingw
to the list of platforms as follows:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
因此,如果您使用的是 gemfile
,请务必将 gem 放入文件中。