1

我试图运行 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
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

有人知道这里发生了什么吗?我继续跑步bundle installbundle install --deployment就像消息说的那样,它拒绝工作。

4

1 回答 1

3

听起来您已将中间人 gem 添加到 Gemfile 并使用bundle install.

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

于 2013-08-26T22:29:57.407 回答