无法找到 jekyll-multiple-languages-plugin
jekyll-multiple-languages-plugin cannot be found
我是 Ruby 和 Jekyll 的新手。最近我尝试将 Jekyll Multiple Languages Plugin 安装到我的 GitLab Pages 实例上。我已经成功添加
'gem 安装 jekyll-multiple-languages-plugin
捆绑安装'
进入 .gitlab-ci.yml 但是当我尝试添加
gems:
- jekyll-multiple-languages-plugin
进入 _config.yml 为了在网站上使用它,我的提交失败并出现以下错误:
Using jekyll-watch 1.5.0
Using jekyll 3.4.3
Bundle complete! 3 Gemfile dependencies, 20 gems now installed.
Bundled gems are installed into /usr/local/bundle.
$ jekyll build -d public
Configuration file: /builds/myusername/forty-jekyll-theme/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-multiple-languages-plugin 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-multiple-languages-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.4.3 | Error: jekyll-multiple-languages-plugin
ERROR: Job failed: exit code 1
我使用过这种方法,因为任何试图编辑 Gemfile 的尝试都会以提交错误告终。除了添加 bundle install 之外,我还尝试执行所有介绍的步骤。在那种情况下,我得到了同样的错误,但开始看起来像:
18 gems installed
$ gem install jekyll-multiple-languages-plugin
Successfully installed jekyll-multiple-languages-plugin-1.5.1
1 gem installed
$ jekyll build -d public
我在 Stack Overflow 和其他网站上都没有找到解决问题的方法。 For example this did not help
在 Jekyll 的 IRC 频道的 allejo 的大力支持下,我设法解决了这个问题。以下是步骤:
我用过 Gemfile。现在看起来像
source 'https://rubygems.org'
gem 'jekyll'
group :jekyll_plugins do
gem 'jekyll-multiple-languages-plugin'
end
第二个修改的是.gitlab-ci.yml(第一行-图片:ruby-也包括在内)
image: ruby
pages:
stage: build
script:
# - gem install jekyll
- gem install bundler
# - gem install jekyll-multiple-languages-plugin
- bundle install
- bundle exec jekyll build -d public
# - jekyll build -d public
artifacts:
paths:
- public
only:
- master
它产生了一个错误,但这只是由于缺少作为标准插件配置一部分的声明语言引起的。
我是 Ruby 和 Jekyll 的新手。最近我尝试将 Jekyll Multiple Languages Plugin 安装到我的 GitLab Pages 实例上。我已经成功添加 'gem 安装 jekyll-multiple-languages-plugin 捆绑安装'
进入 .gitlab-ci.yml 但是当我尝试添加
gems:
- jekyll-multiple-languages-plugin
进入 _config.yml 为了在网站上使用它,我的提交失败并出现以下错误:
Using jekyll-watch 1.5.0
Using jekyll 3.4.3
Bundle complete! 3 Gemfile dependencies, 20 gems now installed.
Bundled gems are installed into /usr/local/bundle.
$ jekyll build -d public
Configuration file: /builds/myusername/forty-jekyll-theme/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-multiple-languages-plugin 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-multiple-languages-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! jekyll 3.4.3 | Error: jekyll-multiple-languages-plugin
ERROR: Job failed: exit code 1
我使用过这种方法,因为任何试图编辑 Gemfile 的尝试都会以提交错误告终。除了添加 bundle install 之外,我还尝试执行所有介绍的步骤。在那种情况下,我得到了同样的错误,但开始看起来像:
18 gems installed
$ gem install jekyll-multiple-languages-plugin
Successfully installed jekyll-multiple-languages-plugin-1.5.1
1 gem installed
$ jekyll build -d public
我在 Stack Overflow 和其他网站上都没有找到解决问题的方法。 For example this did not help
在 Jekyll 的 IRC 频道的 allejo 的大力支持下,我设法解决了这个问题。以下是步骤:
我用过 Gemfile。现在看起来像
source 'https://rubygems.org' gem 'jekyll' group :jekyll_plugins do gem 'jekyll-multiple-languages-plugin' end
第二个修改的是.gitlab-ci.yml(第一行-图片:ruby-也包括在内)
image: ruby pages: stage: build script: # - gem install jekyll - gem install bundler # - gem install jekyll-multiple-languages-plugin - bundle install - bundle exec jekyll build -d public # - jekyll build -d public artifacts: paths: - public only: - master
它产生了一个错误,但这只是由于缺少作为标准插件配置一部分的声明语言引起的。