Bundler如何卸载冲突的依赖项 [英] Bundler how to uninstall conflicting dependency

查看:306
本文介绍了Bundler如何卸载冲突的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to execute vagrant plugin install vagrant-vbguest on my Mac

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

但是在那之后我收到一条错误消息

but I have an error message after that

Vagrant用于安装插件的基础系统捆绑器,报告了一个错误.错误如下所示.这些错误通常是 由错误配置的插件安装或瞬态网络引起的 问题.来自Bundler的错误是:

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:

相互冲突的依赖项winrm-fs(= 1.0.1)和winrm-fs(= 0.2.3)
激活的winrm-fs-0.2.3与冲突的依赖项不匹配 (= 1.0.1)

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)

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

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

与: winrm-fs(= 1.0.1)

versus: winrm-fs (= 1.0.1)

与winrm-fs(= 1.0.1)匹配的宝石: winrm-fs-1.0.1

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

所以问题是如何使用Bundler解决该问题,即如何以安全的方式安装我的guest插件? 其他详细信息

So the question is how to resolve this issue with Bundler of how to just install my guest plugin in a safe manner? Other details

vboxmanage --version                                                                                   
5.1.26r117224
Vagrant 1.9.7

推荐答案

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest 解决了问题.看起来像变通办法,但是对我有用,一切似乎都还可以.

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest resolved the issue. Looks like workaround, but it worked for me and everything seems ok right now.

这篇关于Bundler如何卸载冲突的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆