安装 jekyll

gem install jekyll

更新 jekyll

cd 项目文件夹. gem cleanup gem update

查看版本:

jekyll -v

报错

bundle clean –force

试试 可能是安装了 多个版本的jekyll. gem 不知道使用哪个…

卸载 jekyll

gem uninstall jekyll

完全卸载 jekyll 相关依赖.

gem list 查看所有用gem安装的软件.

然后一个个 卸载 带有jekyll 的….

报错2

➜  cms git:(master) ✗ jekyll -v
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/definition.rb:179:in `rescue in specs': Your bundle is locked to jekyll (3.3.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of jekyll (3.3.0) has removed it. You'll need to update your bundle to a different version of jekyll (3.3.0) that hasn't been removed in order to install. (Bundler::GemNotFound)
from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/definition.rb:173:in `specs'
from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/definition.rb:233:in `specs_for'
from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/definition.rb:222:in `requested_specs'
from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:118:in `block in definition_method'
from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:19:in `setup'
from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler.rb:99:in `setup'
from /usr/local/lib/ruby/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:36:in `require_from_bundler'
from /usr/local/lib/ruby/gems/2.3.0/gems/jekyll-3.4.0/exe/jekyll:9:in `<top (required)>'
from /usr/local/bin/jekyll:22:in `load'
from /usr/local/bin/jekyll:22:in `<main>'

项目底下的 gemfile gemfile.lock
里面 有jekyll 的版本的. 如果 之前是 3.3 你要使用 jekyll3.4 这里面的文件需要修改成3.4 然后 bundle install

报错

There are two main types of Jekyll build error messages.

“Page build warning” - Your build completed just fine, but there’s something we think you ought to know. “Page build failed” - Your build failed to complete. If we are able to detect the specific error, we will send you a descriptive error message with a link to supporting documentation. If we are not able to detect a specific error with your page build failure, then you will receive a generic “page build failed” error message.

可以通过 邮件 获取时报信息… 默认 build 失败 会给你发邮件的!!!! 查看github设置里面的邮箱就可以了..

我这里是 是直接 failure…

Page build timed out.

➜ 2017 git:(master) ✗ bundle exec jekyll serve Configuration file: /Users/v/Desktop/2017/_config.yml Configuration file: /Users/v/Desktop/2017/_config.yml Source: /Users/v/Desktop/2017 Destination: /Users/v/Desktop/2017/_site Incremental build: disabled. Enable with –incremental Generating… done in 385.71 seconds. Auto-regeneration: enabled for ‘/Users/v/Desktop/2017’ Configuration file: /Users/v/Desktop/2017/_config.yml Server address: http://127.0.0.1:4000/ Server running… press ctrl-c to stop. Regenerating: 354 file(s) changed at 2017-01-05 14:15:08 …done in 0.486919 seconds. Regenerating: 2 file(s) changed at 2017-01-05 14:15:09 …done in 0.367121 seconds. Regenerating: 2 file(s) changed at 2017-01-05 14:15:11 …done in 0.285582 seconds. Regenerating: 167 file(s) changed at 2017-01-05 14:15:23 …done in 458.575677 seconds. Regenerating: 161 file(s) changed at 2017-01-05 14:23:01 …done in 476.483205 seconds.