如何解决"依赖错误:Yikes!看起来你没有安装bunto-sitemap。



我正在尝试在Windows 10计算机上使用Bunto,但是我得到了依赖项错误

错误

在这里输出(错误(:

> bundle exec bunto serve
Configuration file: C:/Users/Aahash/Downloads/aahash.tk/_config.yml
  Dependency Error: Yikes! It looks like you don't have bunto-sitemap or one of its dependencies installed. In order to use Bunto as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- bunto-sitemap' If you run into trouble, you can find helpful resources at https://buntowaf.tk/help/!
bunto 3.2.1 | Error:  bunto-sitemap

我的环境

这是我的红宝石和宝石版本:

> ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mingw32]
> gem -v
2.6.8

代码

我的Gemfile

source "https://rubygems.org"
ruby RUBY_VERSION
gem 'bunto'

输出

这是我的bundle install的输出:

Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using sass 3.4.23
Using rb-fsevent 0.9.8
Using ffi 1.9.18
Using ruby_dep 1.5.0
Using wdm 0.1.1
Using colorator 1.1.0
Using kramdown 1.13.2
Using liquid 3.0.6
Using mercenary 0.3.6
Using forwardable-extended 2.6.0
Using rouge 1.11.1
Using safe_yaml 1.0.4
Using bundler 1.13.6
Using bunto-sass-converter 2.0.0
Using rb-inotify 0.9.8
Using pathutil 0.14.0
Using listen 3.1.5
Using bunto-watch 1.0.0
Using bunto 3.2.1
Bundle complete! 2 Gemfile dependencies, 19 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

如何解决此错误?预先感谢!

您忘了在Gemfile中添加gem 'bunto-sitemap'


您还应使用Windows目录监视器(WDM(GEM!

信息: Windows Directory Monitor(WDM(是一个线程安全的Ruby库,可用于监视目录以用于更改Windows的目录。它主要是在C中实现的,并使用Win32 API进行更好的性能!


从此更改Gemfile中的内容:

source "https://rubygems.org"
ruby RUBY_VERSION
gem 'bunto'

source "https://rubygems.org"
ruby RUBY_VERSION
gem 'bunto'
gem 'bunto-sitemap'
## Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

我遇到了一个不同的宝石,如果安装了宝石,则有可能出于捆绑包不捡起的原因。

确保捆绑包识别它尝试使用以下命令:

sudo bundle add bunto-sitemap

在此之后,检查捆绑包,如果它在此显示,则目前正在尝试尝试再次运行的操作。它应该

相关内容

最新更新