Gem::Specification.reset 期间未解决的规范: [英] Unresolved specs during Gem::Specification.reset:

查看:15
本文介绍了Gem::Specification.reset 期间未解决的规范:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动 Guard 时,我得到以下输出:

When launching Guard, I'm getting this output:

$ guard
WARN: Unresolved specs during Gem::Specification.reset:
      lumberjack (>= 1.0.2)
      ffi (>= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.

这是什么意思,我该如何解决?

What does this mean, and how do I fix it?

Guardfile 的内容:

Contents of Guardfile:

guard 'livereload' do
    watch(%r{.+.(css|js|html)$})
end
guard 'sass', :input => 'css', :style => :compressed, :extension => '.min.css'

推荐答案

我是通过单独运行 RSpec 来发现这个问题的.据我了解,这意味着您的系统上安装了多个版本的列出的 gem,而 RSpec 不确定要使用哪一个.卸载旧版本的 gem 后,警告消失了.

I was seeing this issue by just running RSpec on its own. From what I understand, this means that you have more than one version of the listed gems installed on your system, and RSpec is unsure which one to use. After uninstalling older version of the gems, the warnings went away.

你可以试试:

gem cleanup lumberjack

或者:

gem list lumberjack

gem uninstall lumberjack

如果您使用的是 Bundler,您可以尝试 bundle exec guard(或者在我的情况下为 bundle exec rspec).

If you're using Bundler, you can try bundle exec guard (or in my case bundle exec rspec).

这篇关于Gem::Specification.reset 期间未解决的规范:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆