Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 如何解决;依赖错误:Yikes!看起来你没有';“我没有安装bunto站点地图。”;在窗户上?_Ruby_Rubygems - Fatal编程技术网

Ruby 如何解决;依赖错误:Yikes!看起来你没有';“我没有安装bunto站点地图。”;在窗户上?

Ruby 如何解决;依赖错误:Yikes!看起来你没有';“我没有安装bunto站点地图。”;在窗户上?,ruby,rubygems,Ruby,Rubygems,我试图在我的Windows 10计算机上使用,但出现了一个依赖项错误 错误 此处显示输出(错误): 我的环境 这是我的Ruby和Gems版本: > 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' 输出 这是我的捆绑安装的输出

我试图在我的Windows 10计算机上使用,但出现了一个依赖项错误

错误

此处显示输出(错误):

我的环境

这是我的Ruby和Gems版本:

> 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'
输出

这是我的
捆绑安装的输出:

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.

如何修复此错误?提前谢谢

您忘记在
gem文件中添加
gem'bunto sitemap'


你也应该使用宝石

信息:Windows目录监视器(WDM)是一个线程安全的ruby库,可用于监视Windows上目录的更改。它主要是用C实现的,并使用Win32 API以获得更好的性能


通过以下方式更改
GEM文件中的内容:

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?

您忘记在
gem文件中添加
gem'bunto sitemap'


你也应该使用宝石

信息:Windows目录监视器(WDM)是一个线程安全的ruby库,可用于监视Windows上目录的更改。它主要是用C实现的,并使用Win32 API以获得更好的性能


通过以下方式更改
GEM文件中的内容:

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?

我对另一个gem也有同样的问题,如果安装了gem,那么无论出于什么原因,包都可能无法拾取它

要确保捆绑包能够识别它,请尝试使用以下命令:

sudo bundle add bunto-sitemap

之后,检查捆绑包,如果它现在显示在那里,请再次尝试您尝试运行的操作。它应该工作

我在不同的gem上遇到了相同的问题,如果安装了gem,那么无论出于什么原因,包都可能无法拾取它

要确保捆绑包能够识别它,请尝试使用以下命令:

sudo bundle add bunto-sitemap

之后,检查捆绑包,如果它现在显示在那里,请再次尝试您尝试运行的操作。应该是这样的

您在
gem文件中忘记了一些宝石
!我需要额外的宝石吗?请阅读我的答案:。您在
Gemfile
中忘记了一些宝石!我需要额外的宝石吗?阅读我的答案:。@AahashdeRuffy在我的答案上打勾,将问题标记为已回答,如果需要,给我+1。非常感谢。很高兴它对你有用@AahashdeRuffy在我的答案上打勾,将问题标记为已回答,如果您愿意,请给我+1。非常感谢。很高兴它对你有用!