我正在尝试在我的 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/