githubpage 啟動(dòng)hexo 并上傳代碼到github上

It looks like you don't have jekyll-paginate or one of its dependencies installed

Dependency Error: Yikes! It looks like you don’t have jekyll-paginate 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 – jekyll-paginate’ If you run into trouble, you can find helpful resources at Getting Help

jekyll 3.1.2 | Error: jekyll-paginate

解決辦法:安裝jekyll時(shí)候直接運(yùn)行g(shù)em install jekyll-paginate即可解決

plugins

感謝作者分享 第6條寫反了 "配置文件_config.yml中,使用了 plugins 的配置項(xiàng),用 gems 替換 plugins 即可。"應(yīng)該是用plugins替換掉gems.

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

作者:AlphaJian
鏈接:http://www.lxweimin.com/p/12e7e1f8007e
來源:簡(jiǎn)書
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處。

Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

jekyll serve 啟動(dòng)失敗
jekyll serve

Incremental build: disabled. Enable with –incremental
Generating…
done in 0.558 seconds.
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 ‘E:/myBlog/xxue’
Configuration file: E:/myBlog/xxue/_config.yml
jekyll 3.3.1 | Error: Permission denied - bind(2) for 127.0.0.1:4000

解決辦法:修改_config.yml文件
后面添加一行:port: 4001(數(shù)字前面需添加空格)

啟動(dòng)blog的步驟:

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ gem install jekyll
Successfully installed jekyll-3.6.2
Parsing documentation for jekyll-3.6.2
Done installing documentation for jekyll after 4 seconds
1 gem installed

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll s
Configuration file: D:/643435675.github.io/_config.yml
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
Dependency Error: Yikes! It looks like you don't have jekyll-paginate 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 -- jekyll-paginate' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.6.2 | Error: jekyll-paginate

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll s
Configuration file: D:/643435675.github.io/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-paginate 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 -- jekyll-paginate' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.6.2 | Error: jekyll-paginate

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll s
Configuration file: D:/643435675.github.io/_config.yml
Source: D:/643435675.github.io
Destination: D:/643435675.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 6.995 seconds.
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 'D:/643435675.github.io'
jekyll 3.6.2 | Error: Permission denied - bind(2) for 127.0.0.1:4000

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll s
Configuration file: D:/643435675.github.io/_config.yml
Source: D:/643435675.github.io
Destination: D:/643435675.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 5.798 seconds.
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 'D:/643435675.github.io'
jekyll 3.6.2 | Error: Permission denied - bind(2) for 127.0.0.1:4000

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll -v
jekyll 3.6.2

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll serve
Configuration file: D:/643435675.github.io/_config.yml
Source: D:/643435675.github.io
Destination: D:/643435675.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 6.065 seconds.
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 'D:/643435675.github.io'
jekyll 3.6.2 | Error: Permission denied - bind(2) for 127.0.0.1:4000

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ gem install wdm
Fetching: wdm-0.1.1.gem (100%)
MSYS2 could not be found. Please run 'ridk install'
or download and install MSYS2 manually from https://msys2.github.io/

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ ridk install
bash: ridk: command not found

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ ridk install
bash: ridk: command not found

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ gem ridk install
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command ridk

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll serve
Configuration file: D:/643435675.github.io/_config.yml
Source: D:/643435675.github.io
Destination: D:/643435675.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 5.691 seconds.
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 'D:/643435675.github.io'
jekyll 3.6.2 | Error: Permission denied - bind(2) for 127.0.0.1:4000

Administrator@é?áì MINGW64 /d/643435675.github.io (master)
$ jekyll serve
Configuration file: D:/643435675.github.io/_config.yml
Source: D:/643435675.github.io
Destination: D:/643435675.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 5.87 seconds.
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 'D:/643435675.github.io'
Server address: http://127.0.0.1:4001/
Server running... press ctrl-c to stop.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • Awesome Ruby Toolbox Awesome A collection of awesome Ruby...
    debbbbie閱讀 2,932評(píng)論 0 3
  • 只有提問時(shí),你才在思考。因?yàn)樗伎际怯蓡栴}推動(dòng)的,只有提出有質(zhì)量的問題,才能得到有質(zhì)量的答案,所以提問推動(dòng)思維的發(fā)...
    大魚先森閱讀 506評(píng)論 0 0
  • 希望在泡沫升到半空中破裂 成我看不見的顆粒 追逐彩虹的孩子 在每個(gè)太陽閉眼的時(shí)刻 都在與其賽跑 我記得村邊的河套里...
    綠酒旋風(fēng)閱讀 364評(píng)論 5 2
  • 國慶節(jié)的最后一天,陰雨籠罩著北京,整個(gè)國慶,北京不是霧霾就是陰雨,讓人的心情也高興不起來。上午,起床之后,群里聊天...
    只愛夏天閱讀 398評(píng)論 0 0