在任何 gem 来源中找不到 gem 'another-jekyll-plugin x64-mingw32'

Could not find gem 'another-jekyll-plugin x64-mingw32' in any of the gem sources

我正在尝试在 windows 上使用 jekyll 但是当我 运行

bundle exec jekyll serve

我收到一条错误消息

Could not find gem 'rspec (~> 3.4) x64-mingw32' in any of the gem sources listed in your Gemfile or in gems cached in vendor/cache. Run bundle install to install missing gems.

然后当我 运行 捆绑安装时我得到

Could not find gem 'another-jekyll-plugin x64-mingw32' in any of the gem sources listed in your Gemfile or in gems cached in vendor/cache.

这里是包环境

环境

Bundler       2.0.2
  Platforms   ruby, x64-mingw32
Ruby          2.5.5p157 (2019-03-15 revision 67260) [x64-mingw32]
  Full Path   D:/Ruby25-x64/bin/ruby.exe
  Config Dir  C:/ProgramData
RubyGems      2.7.6.2
  Gem Home    D:/Ruby25-x64/lib/ruby/gems/2.5.0
  Gem Path    C:/Users/austi/.gem/ruby/2.5.0;D:/Ruby25-x64/lib/ruby/gems/2.5.0
  User Path   C:/Users/austi/.gem/ruby/2.5.0
  Bin Dir     D:/Ruby25-x64/bin
Tools
  Git         2.22.0.windows.1
  RVM         not installed
  rbenv       not installed
  chruby      not installed

Bundler 构建元数据

Built At          2019-06-13
Git SHA           496bca538
Released Version  true

宝石文件

宝石文件

source 'https://rubygems.org'

# Specify your gem's dependencies in jekyll-admin.gemspec
gemspec

# Site dependencies
gem 'jekyll-seo-tag'
gem 'jekyll-sitemap'
gem 'rake', '12.3.1'
group :jekyll_plugins do
    gem "jekyll-gist"
    gem "jekyll-coffeescript"
    gem "jekyll-assets"
    gem "another-jekyll-plugin"
  end

Gemfile.lock

<No D:/anautics/jekyll-admin/Gemfile.lock found>

宝石规格

jekyll-admin.gemspec

# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'jekyll-admin/version'

Gem::Specification.new do |spec|
  spec.name          = "jekyll-admin"
  spec.version       = JekyllAdmin::VERSION
  spec.authors       = ["Mert Kahyaoğlu", "GitHub Open Source"]
  spec.email         = ["mertkahyaoglu93@gmail.com", "opensource@github.com"]

  spec.summary       = %q{wp-admin for Jekyll, but better}
  spec.description   = %q{Jekyll::Admin is a drop in administrative framework for Jekyll sites.}
  spec.homepage      = "https://github.com/jekyll/jekyll-admin"
  spec.license       = "MIT"

  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
  # to allow pushing to a single host or delete this section to allow pushing to any host.
  if spec.respond_to?(:metadata)
    spec.metadata['allowed_push_host'] = "https://rubygems.org"
  else
    raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
  end

  spec.files         = Dir.glob("lib/**/*").concat(%w(LICENSE README.md))
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib"]

  spec.add_dependency "jekyll", "~> 3.3"
  spec.add_dependency "sinatra", "~> 1.4"
  spec.add_dependency "sinatra-contrib", "~> 1.4"
  spec.add_dependency "addressable", "~> 2.4"

  spec.add_development_dependency "bundler", "~> 1.7"
  spec.add_development_dependency "rake", "~> 10.0"
  spec.add_development_dependency "rspec", "~> 3.4"
  spec.add_development_dependency "rubocop", "~> 0.57.2"
  spec.add_development_dependency "sinatra-cross_origin", "~> 0.3"
  spec.add_development_dependency "gem-release", "~> 0.7"
end

another-jekyll-plugin 表示您要使用的插件并用其名称代替它..它不是插件

随心所欲

gem install jekyll-sitemap
gem install jekyll-seo-tag
gem install jekyll-autoprefixer

gem install <any jekyll plugin name here>

然后

bundle exec jekyll serve

它将解决问题。