无法在任何 gem 源中找到 gem 'another-jekyll-plugin x64-mingw32' 。

问题描述 投票:1回答:1

我试图在windows上使用jekyll,但是当我运行了

捆绑式执行Jekyll服务

我收到一个错误信息说

在你的宝石文件中列出的任何宝石来源或在vendorcache缓存的宝石中找不到宝石'rspec (~> 3.4) x64-mingw32'。运行 "rspec(~> 3.4x64-mingw32)"。 bundle install 来安装缺少的宝石。

然后当我运行bundle install时,我得到

在你的宝石文件中列出的任何宝石来源或在vendorcache缓存的宝石中都找不到宝石'another-jekyll-plugin x64-mingw32'。

这里是捆绑环境

环境问题

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

捆绑程序构建元数据

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         = ["[email protected]", "[email protected]"]

  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
ruby windows jekyll bundler
1个回答
0
投票

another-jekyll-plugin的意思是,你想使用的插件,并把它的名字放在那个地方......它不是一个插件。

© www.soinside.com 2019 - 2024. All rights reserved.