Run Jekyll serve to show’ jekyll-watch’ (~ > 1.1) could not find that I have already installed.

  question, ruby

Win10 system, having just taken a jekyll template, wants to open it locally and report an error after running Jekyll serve after entering the folder.
The error code is:

WARN: Unresolved specs during Gem::Specification.reset:
 jekyll-watch (~> 1.1)
 WARN: Clearing out unresolved specs.
 Please report a bug if this causes problems.
 D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:508:in `rescue in eval_gemspec':  (Bundler::Dsl::DSLError)
 [!  ] There was an error parsing `Gemfile`:
 [!  ] There was an error while loading `minimal-mistakes-jekyll.gemspec`: No such file or directory - git ls-files -z. Bundler cannot continue.
 
 #  from E:/WebFile/minimal-mistakes-master/minimal-mistakes-jekyll.gemspec:14
 #  -------------------------------------------
 #    spec.add_development_dependency "rake", "~> 10.0"
 >  end
 #  # coding: utf-8
 #  -------------------------------------------
 . Bundler cannot continue.
 
 #  from E:/WebFile/minimal-mistakes-master/Gemfile:2
 #  -------------------------------------------
 #  source "https://rubygems.org"
 >  gemspec #  source "https://rubygems.org"
 #  -------------------------------------------
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:500:in `eval_gemspec'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:437:in `block in load_gemspec_uncached'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/shared_helpers.rb:65:in `chdir'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/shared_helpers.rb:65:in `block in chdir'
 from D:/Ruby24-x64/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/shared_helpers.rb:64:in `chdir'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:436:in `load_gemspec_uncached'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:422:in `load_gemspec'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/dsl.rb:66:in `block in gemspec'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/dsl.rb:66:in `map'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/dsl.rb:66:in `gemspec'
 from E:/WebFile/minimal-mistakes-master/Gemfile:2:in `eval_gemfile'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/dsl.rb:47:in `instance_eval'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/dsl.rb:47:in `eval_gemfile'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/dsl.rb:12:in `evaluate'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/definition.rb:35:in `build'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:135:in `definition'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:101:in `setup'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/jekyll-3.6.2/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
 from D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/jekyll-3.6.2/exe/jekyll:11:in `<top (required)>'
 from D:/Ruby24-x64/bin/jekyll:23:in `load'
 from D:/Ruby24-x64/bin/jekyll:23:in `<main>'

Then I installed itgem install jekyll-watch, and then run Jekyll serve is also the same error

After I uninstall this control againgem cleanup jekyll-watch, reinstall, also to this problem.

I checked minegem listIncludes jekyll-watch-2.0.0

This is my environment:

RubyGems Environment:
 - RUBYGEMS VERSION: 2.6.13
 - RUBY VERSION: 2.4.2 (2017-09-14 patchlevel 198) [x64-mingw32]
 - INSTALLATION DIRECTORY: D:/Ruby24-x64/lib/ruby/gems/2.4.0
 - USER INSTALLATION DIRECTORY: C:/Users/Administrator/.gem/ruby/2.4.0
 - RUBY EXECUTABLE: D:/Ruby24-x64/bin/ruby.exe
 - EXECUTABLE DIRECTORY: D:/Ruby24-x64/bin
 - SPEC CACHE DIRECTORY: C:/Users/Administrator/.gem/specs
 - SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData
 - RUBYGEMS PLATFORMS:
 - ruby
 - x64-mingw32
 - GEM PATHS:
 - D:/Ruby24-x64/lib/ruby/gems/2.4.0
 - C:/Users/Administrator/.gem/ruby/2.4.0
 - GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :backtrace => false
 - :bulk_threshold => 1000
 - REMOTE SOURCES:
 -  https://rubygems.org/
 - SHELL PATH:
 - D:\Ruby24-x64\bin
 - D:\Ruby24-x64\bin
 - D:\Anaconda3
 - D:\Anaconda3\Library\mingw-w64\bin
 - D:\Anaconda3\Library\usr\bin
 - D:\Anaconda3\Library\bin
 - D:\Anaconda3\Scripts
 - C:\Windows\system32
 - C:\Windows
 - C:\Windows\System32\Wbem
 - C:\Windows\System32\WindowsPowerShell\v1.0\
 - C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps
 - C:\Users\Administrator\AppData\Local\GitHubDesktop\bin

Ruby doesn’t use much. I guess there is something wrong with your Gemfile. if the gem declared by Gemfile points to a github (or something else), then this gem should include gemspec, and your error report also said this problem. minimal-misakes-jekyll.gemspec does not exist. you can solve this non-existent problem