1. 本地不能訪問
問題描述:
在瀏覽器中不能查看本地效果
http://localhost:4000
解決方法:
檢查_config.yml配置文件是否需要修改
2. Jekyll3.0不能編譯
問題描述:
Deprecation: You appear to have pagination turned on, but you haven’t included the jekyll-paginate gem. Ensure you have gems: [jekyll-paginate] in your configuration file.
故障原因:
jekyll自3.0版本以后不再支持相對(duì)路徑,統(tǒng)一用絕對(duì)路徑。
解決方法:
(1)打開_config.yml文件,將relative_permailinks:true注釋掉;
在結(jié)尾添加
gems: [jekyll-paginate]
保存;
(2)接下來安裝缺失的插件:
gem install pygments.rb
gem install redcarpet
現(xiàn)在編譯Jekyll build
3. 下載認(rèn)證文件
curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem
設(shè)置環(huán)境變量,重新安裝
4. :
Dependency Error: Yikes! It looks like you don't have bundler 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 -- bundler' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.5.0 | Error: bundler
安裝bundler
gem install bundler
5. :
Could not find gem 'minima (~> 2.0) x64-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)
安裝Ruby環(huán)境
gem install minima
6. :
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
配置文件_config.yml中,使用了 plugins 的配置項(xiàng),應(yīng)該是用plugins替換掉gems。
感謝Licsber朋友的指正!
7. :
Configuration file: /_config.yml
Source: .
Destination: ./_site
Generating...
done.
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Auto-regeneration: enabled for '.'
Configuration file: /_config.yml
jekyll 2.4.0 | Error: Permission denied - bind(2) for 127.0.0.1:4000
使用 netstat 命令查看各種端口的被進(jìn)程的占用情況,通過
tasklist /svc /FI "PID eq 11476"
查看具體哪一個(gè)進(jìn)程占用,也可借助于第三方工具完成。
歡迎各位互動(dòng)交流,重裝幾次系統(tǒng),這些問題沒有整理,見諒。后續(xù)會(huì)持續(xù)更近,感謝您的關(guān)注!