Jekyll搭建寫作環(huán)境問題集錦

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)注!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,506評(píng)論 19 139
  • Ubuntu的發(fā)音 Ubuntu,源于非洲祖魯人和科薩人的語言,發(fā)作 oo-boon-too 的音。了解發(fā)音是有意...
    螢火蟲de夢(mèng)閱讀 100,585評(píng)論 9 468
  • linux資料總章2.1 1.0寫的不好抱歉 但是2.0已經(jīng)改了很多 但是錯(cuò)誤還是無法避免 以后資料會(huì)慢慢更新 大...
    數(shù)據(jù)革命閱讀 13,171評(píng)論 2 33
  • Spring Boot 參考指南 介紹 轉(zhuǎn)載自:https://www.gitbook.com/book/qbgb...
    毛宇鵬閱讀 47,253評(píng)論 6 342
  • 2006年,我從廣告公司正式進(jìn)入旅游局工作,期間經(jīng)歷了香港旅游局,美國(guó)各州中心負(fù)責(zé)賓夕法尼亞州和華盛頓特區(qū)的旅游推...
    flyingfish2007閱讀 266評(píng)論 0 1

友情鏈接更多精彩內(nèi)容