gpt4 book ai didi

ruby-on-rails - ruby 错误 : cannot load such file -- wdm (LoadError)

转载 作者:数据小太阳 更新时间:2023-10-29 06:51:49 35 4
gpt4 key购买 nike

我在 Windows 上遇到了一些关于 Jekyll 的重大问题。我终于让它工作了,所以我跑了

jekyll build

然后

jekyll serve --watch

然后我得到以下错误,任何人都可以帮忙吗?

完整的错误是:

C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
cannot load such file -- wdm (LoadError)
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
.rb:207:in `load_dependent_adapter'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
s/windows.rb:33:in `load_dependent_adapter'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
.rb:198:in `usable?'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
s/windows.rb:25:in `usable?'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
.rb:190:in `usable_and_works?'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
.rb:57:in `block in select_and_initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
.rb:55:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/adapter
.rb:55:in `select_and_initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/listene
r.rb:291:in `initialize_adapter'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/listene
r.rb:283:in `setup'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.3.1/lib/listen/listene
r.rb:52:in `start'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.0/lib/jekyll/command
s/build.rb:56:in `watch'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.0/lib/jekyll/command
s/build.rb:8:in `process'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.0/bin/jekyll:97:in `
block (2 levels) in <top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/c
ommand.rb:180:in `call'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/c
ommand.rb:180:in `call'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/c
ommand.rb:155:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/r
unner.rb:402:in `run_active_command'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/r
unner.rb:66:in `run!'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/d
elegates.rb:11:in `run!'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/i
mport.rb:10:in `block in <top (required)>'

最佳答案

我遇到了同样的问题。通过设置“Windows 目录监视器”非常简单地解决了这个问题。

gem install wdm

并在 Gemfile 中包含这一行:

gem 'wdm'

祝你好运!

关于ruby-on-rails - ruby 错误 : cannot load such file -- wdm (LoadError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20459859/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com