Bundler如何卸载冲突的依赖项

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

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

但之后我有一条错误消息

Bundler是Vagrant用于安装插件的底层系统,报告了一个错误。 错误如下所示。 这些错误通常是由错误配置的插件安装或瞬态网络问题引起的。 Bundler的错误是:

冲突的依赖关系winrm-fs(= 1.0.1)和winrm-fs(= 0.2.3)
激活的winrm-fs-0.2.3与冲突的依赖性不匹配(= 1.0.1)

冲突的依赖链:winrm-fs(= 0.2.3),0.2.3激活

与:winrm-fs(= 1.0.1)

符合winrm-fs(= 1.0.1)的gem:winrm-fs-1.0.1

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

 vboxmanage --version 5.1.26r117224 Vagrant 1.9.7 

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest解决了这个问题。 看起来像变通方法,但它对我有用,现在一切似乎都没问题。

我找到了解决方案:

完全卸载vagrant并重新安装。 但请注意,以前备份您的股票。

如何卸载: https : //www.vagrantup.com/docs/installation/uninstallation.html

在/ opt / vagrant / embedded / gems / gems目录里面有一些旧的嵌入式gems的问题,我不知道如何更新或选择默认版本。

我和vagrant-parallels插件有一个非常相似的问题:

 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.0) Activated winrm-fs-0.2.0 which does not match conflicting dependency (= 1.0.1) Conflicting dependency chains: winrm-fs (= 0.2.0), 0.2.0 activated versus: winrm-fs (= 1.0.1) 

符合winrm-fs(= 1.0.1)的gem:winrm-fs-1.0.1

你找到了解决方案吗?