Bundler 使用 binstub 为不同的 gem 使用 Middleman 生成

Bundler using binstub generated for a different gem using Middleman

我正在使用 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

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

我尝试过研究,其他人引导我多次删除 bin/* 文件。我也尝试更新 bin,但都没有帮助。

感谢任何帮助。

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

我恢复到 3.1.0 和 运行 bundle update。已尝试 运行 中间人命令,但 binstubs 消息不再出现。

最终,我认为它与捆绑器使用 middleman-core 的方式有关。

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