“bundle info puma”由于其他卸载的依赖项而失败

"bundle info puma" failed due to other uninstalled dependency

提问人:Baiyang Li 提问时间:10/25/2023 更新时间:10/25/2023 访问量:25

问:

我有一个非常基本的 rails 应用程序。

运行 and 后,我想运行 以检查 puma 是否基于 Gemfile 安装成功。但是,此命令失败,并显示错误消息 。bundle config set --local deployment truebundle _2.4.10_ installbundle info pumaCould not find debug-1.8.0, web-console-4.2.1, capybara-3.39.2, selenium-webdriver-4.14.0, irb-1.8.3, reline-0.3.9, bindex-0.8.1, addressable-2.8.5, matrix-0.4.2, regexp_parser-2.8.2, xpath-3.2.0, rexml-3.2.6, rubyzip-2.3.2, websocket-1.2.10, rdoc-6.5.0, io-console-0.6.0, public_suffix-5.0.3, psych-5.1.1.1, stringio-3.0.8 in locally installed gems

我更深入地查看并发现错误消息中的这些依赖项未安装,因为它们位于 Gemfile 或 Gemfile 组中,这可能是意料之中的。我可以知道为什么命令关心这些依赖关系而不仅仅是检查吗?我怎样才能运行并让它忽略这 2 组中的依赖关系?testdevelopmentbundle info pumapumabundle info puma

Ruby-on-Rails RubyGems 捆绑器

评论

2赞 Berkhan Berkdemir 10/25/2023
这回答了你的问题吗?Bundler 如何知道要使用什么环境?
0赞 Baiyang Li 10/26/2023
嘿@BerkhanBerkdemir,首先感谢您的回复。实际上它并没有回答我的问题。我知道如何在 Gemfile 中按组安装依赖项。我的问题是,为什么当未安装其他组中的依赖项时无法工作。bundle info puma

答: 暂无答案