简体   繁体   English

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

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

I am trying to use jekyll on windows however when I run我试图在 Windows 上使用 jekyll 但是当我运行时

bundle exec jekyll serve捆绑执行 jekyll 服务

I get an error saying我收到一条错误消息

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.在 Gemfile 中列出的任何 gem 源或在供应商/缓存中缓存的 gem 中找不到 gem 'rspec (~> 3.4) x64-mingw32'。 Run bundle install to install missing gems.运行bundle install以安装缺少的 gem。

Then when I run bundle install I get然后当我运行 bundle install 我得到

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.在 Gemfile 中列出的任何 gem 源或在供应商/缓存中缓存的 gem 中找不到 gem 'another-jekyll-plugin x64-mingw32'。

here is the bundle env这是捆绑环境

Environment环境

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 Build Metadata Bundler 构建元数据

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

Gemfile文件

Gemfile文件

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 Gemfile.lock

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

Gemspecs宝石规格

jekyll-admin.gemspec 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

Just do做就是了

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

gem install <any jekyll plugin name here>

and then进而

bundle exec jekyll serve

It will fix the issue.它会解决这个问题。

another-jekyll-plugin 意味着您要使用的插件并用它的名字代替那个..它不是插件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在您的Gemfile中列出的或本机上可用的任何gem资源中找不到gem&#39;wdm(&gt; = 0.1.0)x64-mingw32&#39; - Could not find gem 'wdm (>= 0.1.0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine 在Gemfile中列出的任何gem来源中找不到gem&#39;sass-rails(〜&gt; 4.0.3)x64-mingw32&#39; - Could not find gem 'sass-rails (~> 4.0.3) x64-mingw32' in any of the gem sources listed in your Gemfile 找不到 gem &#39;rails (= 4.2.4) x64-mingw32&#39; - Could not find gem 'rails (= 4.2.4) x64-mingw32' 红宝石宝石错误:找不到宝石&#39;logstash-devutils(&gt; = 0)x64-mingw32&#39; - ruby gem error: Could not find gem 'logstash-devutils (>= 0) x64-mingw32' 找不到在轨道上运行服务器ruby的gem&#39;byebug x64-mingw32&#39;吗? - Could not find gem 'byebug x64-mingw32' for run server ruby on rails? 在本地安装的 gem 中找不到 gem &#39;pg x64-mingw32&#39; - Could not find gem 'pg x64-mingw32' in locally installed gems 在 Gemfile 中列出的任何 gem 源中都找不到 gem &#39;tzinfo-data x86-mingw32&#39;。 (Bundler::GemNotFound) - Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) 无法在Gemfile中列出的任何gem源中找到gem&#39;rail(= 4.2.5.2)x86-mingw32&#39;或在此机器上可用 - Could not find gem 'rails (= 4.2.5.2) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine 找不到gem&#39;rails x86-mingw32&#39; - Could not find gem 'rails x86-mingw32' 在您的 Gemfile 中列出的任何 gem 源中找不到 gem 'nested-scaffold x86_64-linux' - Could not find gem 'nested-scaffold x86_64-linux' in any of the gem sources listed in your Gemfile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM