ruby - Bundler 如何卸载冲突的依赖项

标签 ruby macos vagrant virtualbox bundler

我正在尝试在我的 Mac 上执行 vagrant plugin install vagrant-vbguest

ProductName:    Mac OS X
ProductVersion: 10.12.6
BuildVersion:   16G29

但在那之后我有一个错误信息

Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is:

conflicting dependencies winrm-fs (= 1.0.1) and winrm-fs (= 0.2.3)
Activated winrm-fs-0.2.3 which does not match conflicting dependency (= 1.0.1)

Conflicting dependency chains: winrm-fs (= 0.2.3), 0.2.3 activated

versus: winrm-fs (= 1.0.1)

Gems matching winrm-fs (= 1.0.1): winrm-fs-1.0.1

所以问题是如何使用 Bundler 解决这个问题,即如何以安全的方式安装我的访客插件? 其他详情

vboxmanage --version                                                                                   
5.1.26r117224
Vagrant 1.9.7

最佳答案

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant 插件安装 vagrant-vbguest 解决了这个问题。看起来像是解决方法,但它对我有用,现在一切似乎都正常。

关于ruby - Bundler 如何卸载冲突的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45760176/

相关文章:

ruby - 我需要包含哪些模块才能让 5.seconds 在 Ruby 中工作?

macos - 在 Mac OS Big Sur 中从代码窗口切换到终端的 VS code 快捷方式

objective-c - NSTextField 子类在 setLineBreakMode : method 上崩溃

virtualbox - Vagrant:网络类型 'bridged' 无效。请使用有效的网络类型

ruby-on-rails - :finder_sql 的限制

ruby-on-rails - 是否有可能在 rails(或 ruby​​ 的其他地方)中阻止 block 返回?返回数组中的 50,000 条记录需要一段时间

python - 无法在 Mac OS X 终端上使用 pip 安装 Tweepy

apache - 在 Vagrant 盒子上创建虚拟主机

php - 使用 vagrant 环境时无法连接 Websocket

php - 用于 Ruby、PHP 的交互式控制台