没有安装 jekyll-paginate 或其依赖项之一
don't have jekyll-paginate or one of its dependencies installed
我已经安装了这个 jekyll theme。但是遇到了一个问题。
如果我这样做:
bundle exec jekyll serve
一切正常(_site
文件夹包含必要的文件,服务器是 运行),但如果我使用以下命令:
jekyll build -d /var/www/budka/data/www/blog
我收到错误:
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
http://jekyllrb.com/help/!
jekyll 3.1.1 | Error: jekyll-paginate
我试图解决这个问题,但没有成功。
现在 Gemfile 文件包含:
source 'http://rubygems.org'
gem 'github-pages'
gem 'html-proofer'
gem "jekyll"
gem 'jekyll-paginate'
gem "pygments.rb"
jekyll-paginate (1.1.0)
gem 已安装,因为我在 gem list
commnad:
中看到它
*** LOCAL GEMS ***
actionmailer (4.2.5)
actionpack (4.2.5)
actionpack-action_caching (1.1.1)
actionpack-xml_parser (1.0.2)
actionview (4.2.5)
activejob (4.2.5)
activemodel (4.2.5)
activerecord (4.2.5)
activesupport (4.2.5.1, 4.2.5)
addressable (2.4.0, 2.3.8)
arel (6.0.3)
awesome_nested_set (3.0.3)
bigdecimal (1.2.4)
builder (3.2.2)
bundler (1.11.2)
climate_control (0.0.3)
cocaine (0.5.8)
coderay (1.1.0)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
colorator (0.1)
colored (1.2)
concurrent-ruby (1.0.0)
css_parser (1.3.7)
erubis (2.7.0)
ethon (0.8.1)
execjs (2.6.0)
faraday (0.9.2)
ffi (1.9.10)
gemoji (2.1.0)
github-pages (48)
github-pages-health-check (0.6.1)
globalid (0.3.6)
html-pipeline (2.3.0)
html-proofer (2.6.4)
htmlentities (4.3.1)
i18n (0.7.0)
io-console (0.4.2)
jekyll (3.1.1, 3.0.3)
jekyll-coffeescript (1.0.1)
jekyll-feed (0.3.1)
jekyll-gist (1.4.0)
jekyll-mentions (1.0.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.9.1)
jekyll-sass-converter (1.4.0, 1.3.0)
jekyll-seo-tag (1.0.0)
jekyll-sitemap (0.10.0)
jekyll-textile-converter (0.1.0)
jekyll-watch (1.3.1)
jemoji (0.5.1)
jquery-rails (3.1.4)
json (1.8.3, 1.8.1)
kaminari (0.16.3)
kramdown (1.9.0)
liquid (3.0.6)
listen (3.0.6)
loofah (2.0.3)
mail (2.6.3)
mercenary (0.3.5)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.4, 4.7.5)
multi_json (1.11.2)
multipart-post (2.0.0)
mysql2 (0.3.20)
net-dns (0.8.0)
net-ldap (0.12.1)
nokogiri (1.6.7.2)
octokit (4.2.0)
pandoc-ruby (1.0.0)
paperclip (4.2.4)
parallel (1.6.1)
passenger (5.0.23)
posix-spawn (0.3.11)
protected_attributes (1.1.3)
psych (2.0.5)
public_suffix (1.5.3)
pygments.rb (0.6.3)
rack (1.6.4, 1.5.2)
rack-openid (1.4.2)
rack-raw-upload (1.1.1)
rack-test (0.6.3)
rails (4.2.5)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.5)
rake (10.5.0, 10.1.0)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rbpdf (1.19.0)
rbpdf-font (1.19.0)
rdiscount (2.1.8)
rdoc (4.1.0)
redcarpet (3.3.4, 3.3.3)
RedCloth (4.2.9)
redmine_crm (0.0.22)
request_store (1.0.5)
rmagick (2.15.4)
roadie (3.1.1)
roadie-rails (1.1.0)
rouge (1.10.1)
ruby-ole (1.2.12)
ruby-openid (2.3.0)
rubyzip (1.1.7, 1.1.6)
safe_yaml (1.0.4)
sass (3.4.21)
sass-rails (5.0.4)
sawyer (0.6.0)
spreadsheet (0.6.9)
sprockets (3.5.2)
sprockets-rails (3.0.0)
terminal-table (1.5.2)
test-unit (2.1.5.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
typhoeus (0.8.0)
tzinfo (1.2.2)
vcard (0.2.12)
yajl-ruby (1.2.1)
yell (2.0.5)
此外,我添加了这一行:
gems: [jekyll-paginate, jekyll-gist]
进入 _config.yml
文件,但 jekyll build -d /var/www/budka/data/www/blog
命令仍然无效。
请问如何解决这个问题?
在 Jekyll repository, and this comment 上发现了类似的问题,帮我解决了。
首先运行gem uninstall --all
,然后运行gem install github-pages
。
P.S。您也不需要在 Gemfile
中明确地 jekyll-paginate
因为它已经包含在 github-pages
gem.
中
我也遇到过类似的问题!我发现你有两个版本的jekyll,jekyll (3.1.1, 3.0.3),导致出现这种现象。
于是卸载一个:
首先运行gem卸载jekyll,
gem uninstall jekyll
Select gem to uninstall:
1. jekyll-3.0.3
2. jekyll-3.1.2
3. All versions
> 2
Successfully uninstalled jekyll-3.1.2
然后 运行 Jekyll serve
.
希望能帮到你!
我找到了相同错误的解决方案[=13 之后没有 jekyll-paginate 或其依赖项之一 =]:
编辑 Gemfile 并添加:
source "https://rubygems.org"
gem "jekyll"
gem "jekyll-paginate"
在我的例子中,我只需要添加到我的 Gemfile
gem "jekyll"
编辑文件后,我 运行 在终端中输入命令:
$ bundle install
$ bundle exec jekyll serve
然后这个问题就解决了...
就运行gem install jekyll-paginate
我也有同样的问题。我收到错误:
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/!
我通过编辑 Gemfile 解决了这个问题!添加 gem "jekyll-paginate", "~> 1.1.0"
即可!
问题是什么
我在 jekyll 3.8.5 版本中遇到了同样的问题,简短的错误消息如下所示
jekyll 3.8.5 | Error: jekyll-paginate
调查问题
然后我阅读了我的项目 Gemfile。
If you want to use GitHub Pages, remove the "gem "jekyll"" above and
uncomment the line below. To upgrade, run bundle update github-pages
.
解决方案
所以我按照它的建议做了,评论 # gem "jekyll", "~> 3.8.5"
并在
行下面取消评论
gem "github-pages", group: :jekyll_plugins
然后 运行 bundle update github-pages
和 bundle exec jekyll serve
.
因为 github-pages 有所有必要的 gem 文件,所以我解决了我的问题。
我最近 运行 遇到了这个问题。
这是在 MacOS运行ning Jekyll 站点(github 页)
的完整步骤列表
安装捆绑器和 jekyll
复制自https://jekyllrb.com/docs/installation/macos/
1. Install Xcode
2. Install Homebrew
Add RUBY to your PATH as
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
3. Install Jekyll
Add gems to your PATH as
echo 'export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"' >> ~/.bash_profile
运行 Jekyll 网站
重新启动您的终端并转到项目的根目录。
bundle exec jekyll serve
如果上述命令运行出现以下错误,则更新gemfile
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. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll-paginate gem in your Gemfile as well. 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/!
修复
Gemfile 位于您项目的根目录中。添加新的宝石作为
source "https://rubygems.org"
gem "jekyll", "~> 4.0"
gem "jekyll-paginate", "~> 1.1.0"
gem "jekyll-sitemap"
gem "jekyll-gist"
gem "jekyll-feed"
gem "jemoji"
然后
bundle install
bundle exec jekyll serve
您的网站应该在 http://127.0.0.1:4000/
我已经安装了这个 jekyll theme。但是遇到了一个问题。
如果我这样做:
bundle exec jekyll serve
一切正常(_site
文件夹包含必要的文件,服务器是 运行),但如果我使用以下命令:
jekyll build -d /var/www/budka/data/www/blog
我收到错误:
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 http://jekyllrb.com/help/!
jekyll 3.1.1 | Error: jekyll-paginate
我试图解决这个问题,但没有成功。 现在 Gemfile 文件包含:
source 'http://rubygems.org'
gem 'github-pages'
gem 'html-proofer'
gem "jekyll"
gem 'jekyll-paginate'
gem "pygments.rb"
jekyll-paginate (1.1.0)
gem 已安装,因为我在 gem list
commnad:
*** LOCAL GEMS ***
actionmailer (4.2.5)
actionpack (4.2.5)
actionpack-action_caching (1.1.1)
actionpack-xml_parser (1.0.2)
actionview (4.2.5)
activejob (4.2.5)
activemodel (4.2.5)
activerecord (4.2.5)
activesupport (4.2.5.1, 4.2.5)
addressable (2.4.0, 2.3.8)
arel (6.0.3)
awesome_nested_set (3.0.3)
bigdecimal (1.2.4)
builder (3.2.2)
bundler (1.11.2)
climate_control (0.0.3)
cocaine (0.5.8)
coderay (1.1.0)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
colorator (0.1)
colored (1.2)
concurrent-ruby (1.0.0)
css_parser (1.3.7)
erubis (2.7.0)
ethon (0.8.1)
execjs (2.6.0)
faraday (0.9.2)
ffi (1.9.10)
gemoji (2.1.0)
github-pages (48)
github-pages-health-check (0.6.1)
globalid (0.3.6)
html-pipeline (2.3.0)
html-proofer (2.6.4)
htmlentities (4.3.1)
i18n (0.7.0)
io-console (0.4.2)
jekyll (3.1.1, 3.0.3)
jekyll-coffeescript (1.0.1)
jekyll-feed (0.3.1)
jekyll-gist (1.4.0)
jekyll-mentions (1.0.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.9.1)
jekyll-sass-converter (1.4.0, 1.3.0)
jekyll-seo-tag (1.0.0)
jekyll-sitemap (0.10.0)
jekyll-textile-converter (0.1.0)
jekyll-watch (1.3.1)
jemoji (0.5.1)
jquery-rails (3.1.4)
json (1.8.3, 1.8.1)
kaminari (0.16.3)
kramdown (1.9.0)
liquid (3.0.6)
listen (3.0.6)
loofah (2.0.3)
mail (2.6.3)
mercenary (0.3.5)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.4, 4.7.5)
multi_json (1.11.2)
multipart-post (2.0.0)
mysql2 (0.3.20)
net-dns (0.8.0)
net-ldap (0.12.1)
nokogiri (1.6.7.2)
octokit (4.2.0)
pandoc-ruby (1.0.0)
paperclip (4.2.4)
parallel (1.6.1)
passenger (5.0.23)
posix-spawn (0.3.11)
protected_attributes (1.1.3)
psych (2.0.5)
public_suffix (1.5.3)
pygments.rb (0.6.3)
rack (1.6.4, 1.5.2)
rack-openid (1.4.2)
rack-raw-upload (1.1.1)
rack-test (0.6.3)
rails (4.2.5)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.5)
rake (10.5.0, 10.1.0)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rbpdf (1.19.0)
rbpdf-font (1.19.0)
rdiscount (2.1.8)
rdoc (4.1.0)
redcarpet (3.3.4, 3.3.3)
RedCloth (4.2.9)
redmine_crm (0.0.22)
request_store (1.0.5)
rmagick (2.15.4)
roadie (3.1.1)
roadie-rails (1.1.0)
rouge (1.10.1)
ruby-ole (1.2.12)
ruby-openid (2.3.0)
rubyzip (1.1.7, 1.1.6)
safe_yaml (1.0.4)
sass (3.4.21)
sass-rails (5.0.4)
sawyer (0.6.0)
spreadsheet (0.6.9)
sprockets (3.5.2)
sprockets-rails (3.0.0)
terminal-table (1.5.2)
test-unit (2.1.5.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
typhoeus (0.8.0)
tzinfo (1.2.2)
vcard (0.2.12)
yajl-ruby (1.2.1)
yell (2.0.5)
此外,我添加了这一行:
gems: [jekyll-paginate, jekyll-gist]
进入 _config.yml
文件,但 jekyll build -d /var/www/budka/data/www/blog
命令仍然无效。
请问如何解决这个问题?
在 Jekyll repository, and this comment 上发现了类似的问题,帮我解决了。
首先运行gem uninstall --all
,然后运行gem install github-pages
。
P.S。您也不需要在 Gemfile
中明确地 jekyll-paginate
因为它已经包含在 github-pages
gem.
我也遇到过类似的问题!我发现你有两个版本的jekyll,jekyll (3.1.1, 3.0.3),导致出现这种现象。 于是卸载一个: 首先运行gem卸载jekyll,
gem uninstall jekyll
Select gem to uninstall:
1. jekyll-3.0.3
2. jekyll-3.1.2
3. All versions
> 2
Successfully uninstalled jekyll-3.1.2
然后 运行 Jekyll serve
.
希望能帮到你!
我找到了相同错误的解决方案[=13 之后没有 jekyll-paginate 或其依赖项之一 =]:
编辑 Gemfile 并添加:
source "https://rubygems.org"
gem "jekyll"
gem "jekyll-paginate"
在我的例子中,我只需要添加到我的 Gemfile
gem "jekyll"
编辑文件后,我 运行 在终端中输入命令:
$ bundle install
$ bundle exec jekyll serve
然后这个问题就解决了...
就运行gem install jekyll-paginate
我也有同样的问题。我收到错误:
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/!
我通过编辑 Gemfile 解决了这个问题!添加 gem "jekyll-paginate", "~> 1.1.0"
即可!
问题是什么
我在 jekyll 3.8.5 版本中遇到了同样的问题,简短的错误消息如下所示
jekyll 3.8.5 | Error: jekyll-paginate
调查问题
然后我阅读了我的项目 Gemfile。
If you want to use GitHub Pages, remove the "gem "jekyll"" above and uncomment the line below. To upgrade, run
bundle update github-pages
.
解决方案
所以我按照它的建议做了,评论 # gem "jekyll", "~> 3.8.5"
并在
gem "github-pages", group: :jekyll_plugins
然后 运行 bundle update github-pages
和 bundle exec jekyll serve
.
因为 github-pages 有所有必要的 gem 文件,所以我解决了我的问题。
我最近 运行 遇到了这个问题。
这是在 MacOS运行ning Jekyll 站点(github 页)
的完整步骤列表安装捆绑器和 jekyll
复制自https://jekyllrb.com/docs/installation/macos/
1. Install Xcode
2. Install Homebrew
Add RUBY to your PATH as
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
3. Install Jekyll
Add gems to your PATH as
echo 'export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"' >> ~/.bash_profile
运行 Jekyll 网站
重新启动您的终端并转到项目的根目录。
bundle exec jekyll serve
如果上述命令运行出现以下错误,则更新gemfile
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. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll-paginate gem in your Gemfile as well. 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/!
修复
Gemfile 位于您项目的根目录中。添加新的宝石作为
source "https://rubygems.org"
gem "jekyll", "~> 4.0"
gem "jekyll-paginate", "~> 1.1.0"
gem "jekyll-sitemap"
gem "jekyll-gist"
gem "jekyll-feed"
gem "jemoji"
然后
bundle install
bundle exec jekyll serve
您的网站应该在 http://127.0.0.1:4000/