亲好鉴定

jekyll s出现...(Bundler::GemNotFou

2018-10-05  本文已影响737人  e18ea5ca8301

今天下载jekll theme主题的时候想要运行jekyll s,结果又双叒叕出错了......

错误如下:

E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/resolver.rb:289:in `bl ock in verify_gemfile_dependencies_are_found!': Could not find gem 'rake (~> 10. 0) x64-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemN otFound)

完整出错结果如下:

E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/resolver.rb:289:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'rake (~> 10.0) x64-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/resolver.rb:257:in `each'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/resolver.rb:257:in `verify_gemfile_dependencies_are_found!'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/resolver.rb:48:in `start'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/resolver.rb:22:in `resolve'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:258:in `resolve'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:171:in `specs'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:238:in `specs_for'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:227:in `requested_specs'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:108:in `block in definition_method'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:20:in `setup'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler.rb:107:in `setup'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.3/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'

        from E:/Ruby25-x64/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.3/exe/jekyll:11:in `<top (required)>'

        from E:/Ruby25-x64/Ruby25-x64/bin/jekyll:23:in `load'

        from E:/Ruby25-x64/Ruby25-x64/bin/jekyll:23:in `<main>'

解决方法:

bundle install 一下就好了,如果bundle install很慢,可能是需要翻墙。下载完以后就又能运行jekyll s了。

完整安装结果如下:

Fetching gem metadata from https://rubygems.org/...........

Fetching gem metadata from https://rubygems.org/.

Resolving dependencies...

Fetching rake 10.5.0

Installing rake 10.5.0

Using public_suffix 3.0.3

Using addressable 2.5.2

Using bundler 1.16.2

Using colorator 1.1.0

Using concurrent-ruby 1.0.5

Using eventmachine 1.2.7 (x64-mingw32)

Using http_parser.rb 0.6.0

Using em-websocket 0.5.1

Using ffi 1.9.25 (x64-mingw32)

Using forwardable-extended 2.6.0

Using future_imperfect_jekyll_theme 0.1.1 from source at `.`

Using i18n 0.9.5

Using rb-fsevent 0.10.3

Using rb-inotify 0.9.10

Using sass-listen 4.0.0

Fetching sass 3.6.0

Installing sass 3.6.0

Using jekyll-sass-converter 1.5.2

Using ruby_dep 1.5.0

Using listen 3.1.5

Using jekyll-watch 2.0.0

Using kramdown 1.17.0

Using liquid 4.0.0

Using mercenary 0.3.6

Using pathutil 0.16.1

Fetching rouge 3.3.0

Installing rouge 3.3.0

Using safe_yaml 1.0.4

Fetching jekyll 3.8.4

Installing jekyll 3.8.4

Bundle complete! 4 Gemfile dependencies, 28 gems now installed.

Use `bundle info [gemname]` to see where a bundled gem is installed.

Post-install message from sass:

Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new

  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the

  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:

  http://sass.logdown.com/posts/7081811

上一篇 下一篇

猜你喜欢

热点阅读