我正在尝试在Windows上使用jekyll
捆绑执行杰基尔服务
我说一个错误
在任何gem中都找不到gem'rspec(〜> 3.4)x64-mingw32' Gemfile或供应商/缓存中缓存的gem中列出的资源。跑
bundle install
安装缺少的宝石。
然后,当我运行捆绑安装时,我会得到
在以下任何位置均找不到gem'another-jekyll-plugin x64-mingw32' Gemfile或供应商/缓存中缓存的宝石中列出的宝石来源。
这是捆绑包
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
<No D:/anautics/jekyll-admin/Gemfile.lock found>
# 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
答案 0 :(得分:0)
another-jekyll-plugin表示您要使用的插件,并将其名称替换为该插件。.它不是插件
答案 1 :(得分:0)
就做
gem install jekyll-sitemap
gem install jekyll-seo-tag
gem install jekyll-autoprefixer
gem install <any jekyll plugin name here>
然后
bundle exec jekyll serve
它将解决此问题。