ruby - Jekyll Serve 导致 Ruby 版本出错。(捆绑器::GemNotFound)
问题描述
这是我看到的错误
D:\Knowledge Base\ion_knowledge_base> jekyll serve
Your Gemfile lists the gem jekyll (~> 3.8.5) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Traceback (most recent call last):
12: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
11: from C:/Ruby27-x64/bin/jekyll:23:in `load'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/exe/jekyll:11:in `<top (required)>'
9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
8: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler.rb:149:in `setup'
7: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/runtime.rb:20:in `setup'
6: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/runtime.rb:101:in `block in definition_method'
5: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:226:in `requested_specs'
4: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:237:in `specs_for'
3: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:170:in `specs'
2: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `materialize'
1: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `map!'
C:/Ruby27-x64/lib/ruby/2.7.0/bundler/spec_set.rb:86:in `block in materialize': Could not find nokogiri-1.10.5-x64-mingw32 in any of the sources (Bundler::GemNotFound)
解决方案
推荐阅读
- c# - 从使用存储过程的 TableAdapter.Update() 方法返回值
- django - 在模板中访问内联表单集的父级?
- python - (Debian) Dragonboard 410c:Tensorflow 不是这个平台上支持的轮子
- typescript - VsCode 任务事件不会触发
- c# - 将目录移动到当前目录 C#
- wordpress - 我怎样才能创建一个像这样的简单测验?
- php - 从 mysql db 和 php 获取多级 json
- google-cloud-dataflow - Java OutOfMemoryError 使用 PubsubIO
- javascript - es6 更新现有父对象的子对象的方法
- c# - 在期望的类构造函数中动态插入枚举类型作为参数