Bundler 如何卸载冲突的依赖项
Bundler how to uninstall conflicting dependency
我正在尝试在我的 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然后重新安装。不过要小心,之前要备份你的分享。
如何卸载:
https://www.vagrantup.com/docs/installation/uninstallation.html
问题是 /opt/vagrant/embedded/gems/gems 目录中有些旧的嵌入式 gem,我不知道如何更新或 select 默认版本。
VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest
解决了这个问题。看起来像是解决方法,但它对我有用,现在一切似乎都正常。
我正在尝试在我的 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然后重新安装。不过要小心,之前要备份你的分享。
如何卸载: https://www.vagrantup.com/docs/installation/uninstallation.html
问题是 /opt/vagrant/embedded/gems/gems 目录中有些旧的嵌入式 gem,我不知道如何更新或 select 默认版本。
VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest
解决了这个问题。看起来像是解决方法,但它对我有用,现在一切似乎都正常。