【问题标题】:Bundler using binstub generated for a different gem using MiddlemanBundler 使用 binstub 为使用 Middleman 为不同的 gem 生成
【发布时间】:2016-01-12 15:21:56
【问题描述】:

我正在使用 Middleman 来构建一个项目。每当我运行中间人命令时,我都会收到此消息:

Bundler is using a binstub that was created for a different gem.
This is deprecated, in future versions you may need to `bundle binstub middleman-core` to work around a system/bundle conflict.

当我运行 bundle binstub middleman-core 时,我得到了这个:

middleman-core has no executables, but you may want one from a gem it depends on.
bundler has: bundle, bundler
rack has: rackup
tilt has: tilt
erubis has: erubis
listen has: listen
sass has: sass, sass-convert, scss

从该消息中不知道该去哪里以及该做什么。 它不会导致任何故障并且服务器运行,但是如果我不修复它,我觉得这可能是一个更大的问题。当我使用 s3_sync 将其推送到 s3 存储桶并且我 gem 安装了 middleman-sync_s3 时,这最终发生了。

我已经尝试过研究,其他人引导我完成了多次删除bin/* 文件的路径。我也尝试过更新bin,但都没有帮助。

感谢任何帮助。

【问题讨论】:

    标签: bundler middleman


    【解决方案1】:

    所以我在 Gemfile 中跳来跳去,试图弄清楚发生了什么。我在中间人中建立了一些以前的项目,并决定查找它们。我看到我使用的是以前版本的Middleman 3.1.0,而与当前项目一样,我使用的是Middleman 4.0.0

    我恢复到 3.1.0 并运行了 bundle update。尝试运行 Middleman 命令,binstubs 消息不再出现。

    最终,我认为它与 bundler 与中间人核心的游戏方式有关。

    【讨论】:

      【解决方案2】:

      gem install middleman-cli 似乎可以帮助其他人寻找解决方案。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2015-04-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-04-02
        相关资源
        最近更新 更多