Ruby Bundler无法在任何源中找到gem

Ruby Bundler无法在任何源中找到gem,ruby,bundler,Ruby,Bundler,我试图运行Middleman,但出现以下错误: $ middleman WARN: Unresolved specs during Gem::Specification.reset: thor (< 2.0, >= 0.15.2) multi_json (~> 1.0) rb-inotify (>= 0.9) WARN: Clearing out unresolved specs. Please report a bug if this causes prob

我试图运行Middleman,但出现以下错误:

$ middleman
WARN: Unresolved specs during Gem::Specification.reset:
  thor (< 2.0, >= 0.15.2)
  multi_json (~> 1.0)
  rb-inotify (>= 0.9)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Could not find i18n-0.6.1 in any of the sources
Run `bundle install` to install missing gems

有人知道这里发生了什么吗?我一直在运行
bundle install
bundle install--deployment
,就像消息中说的那样,它拒绝工作。

听起来好像您已经将中间商gem添加到gem文件中,并使用
bundle install
进行了安装


如果是这种情况,您应该以
bundle exec middleman
的身份运行middleman。这将确保作为
bundle install
的一部分安装的所有其他gems将可供中间人使用。

您是否尝试过bundle exec middleman?为什么将gems安装到
供应商/bundle
bundle exec middleman
会给我相同的错误消息(但不是早期关于清除未解析规范的警告)。我不确定为什么要将gems安装到
vendor/bundle
,这是米德尔曼附带的安装程序。
$ bundle install
Using i18n (0.6.1)
...
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle

$ middleman
...
Could not find i18n-0.6.1 in any of the sources
Run `bundle install` to install missing gems.

$ bundle show
Gems included by the bundle:
...
* i18n (0.6.1)
...

$ bundle show i18n
/Users/jh/Documents/Workspace/mywebsite-middleman/vendor/bundle/ruby/1.8/gems/i18n-0.6.1