GitHub 页面未构建
GitHub Pages not building
我试图在 GitHub 页上发布一篇文章到我的博客上几个月后,我收到以下错误:
Gem::InstallError: public_suffix requires Ruby version >= 2.0.
Installing sass 3.4.20
An error occurred while installing public_suffix (1.5.2), and Bundler cannot
continue.
Make sure that gem install public_suffix -v '1.5.2'
succeeds before bundling.
然而,根据 GitHub,GH 页面上的 Ruby 版本已经 > 2.0。我是否需要在我的博客代码库中进行一些编程更改才能完成此操作 运行?
这是对应的Gemfile:
source 'https://rubygems.org'
# A simple Ruby Gem to bootstrap dependencies for setting up and
# maintaining a local Jekyll environment in sync with GitHub Pages
# https://github.com/github/pages-gem
gem 'github-pages'
尝试删除您的 gemfile.lock
并从您的 GitHub 页面存储库中拉下最后一个工作 gemfile.lock
文件。 (或者只是从早期的工作提交中检出文件)
大多数奇怪的错误源于 Gemfile.lock
文件的错误,该文件用于跟踪每个 Ruby Gem 的版本。有时当 运行 bundle update
宝石试图升级时,这可能会破坏与其他宝石的兼容性,至少这是我以前发生的事情。通常 运行 bundle update
会导致一些宝石被降级。作为让 Jekyll 在本地构建的临时解决方法,只需将文件恢复为早期版本。
我试图在 GitHub 页上发布一篇文章到我的博客上几个月后,我收到以下错误:
Gem::InstallError: public_suffix requires Ruby version >= 2.0. Installing sass 3.4.20 An error occurred while installing public_suffix (1.5.2), and Bundler cannot continue. Make sure that
gem install public_suffix -v '1.5.2'
succeeds before bundling.
然而,根据 GitHub,GH 页面上的 Ruby 版本已经 > 2.0。我是否需要在我的博客代码库中进行一些编程更改才能完成此操作 运行?
这是对应的Gemfile:
source 'https://rubygems.org'
# A simple Ruby Gem to bootstrap dependencies for setting up and
# maintaining a local Jekyll environment in sync with GitHub Pages
# https://github.com/github/pages-gem
gem 'github-pages'
尝试删除您的 gemfile.lock
并从您的 GitHub 页面存储库中拉下最后一个工作 gemfile.lock
文件。 (或者只是从早期的工作提交中检出文件)
大多数奇怪的错误源于 Gemfile.lock
文件的错误,该文件用于跟踪每个 Ruby Gem 的版本。有时当 运行 bundle update
宝石试图升级时,这可能会破坏与其他宝石的兼容性,至少这是我以前发生的事情。通常 运行 bundle update
会导致一些宝石被降级。作为让 Jekyll 在本地构建的临时解决方法,只需将文件恢复为早期版本。