我正在运行安装了Vagrant 2.0.2的Windows 10。刚刚更新了它,现在插件不安装。插件是什么并不重要。以下是错误示例:
C:\Users\Curtis\Projects\local.app.lodgable.com>vagrant plugin install vagrant-triggers
Installing the 'vagrant-triggers' plugin. This can take a few minutes...
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 listen (= 3.1.5) and listen (= 3.0.5)
Activated listen-3.0.5
which does not match conflicting dependency (= 3.1.5)
Conflicting dependency chains:
listen (= 3.0.5), 3.0.5 activated
versus:
listen (= 3.1.5)
Gems matching listen (= 3.1.5):
listen-3.1.5
我已卸载Vagrant,重新启动,然后安装Vagrant,重新启动。没有快乐。有关如何解决此问题的任何想法?
我做了一些研究,并且历史上存在依赖性不匹配的情况,但大多数情况都与:
卸载Vagrant然后重新安装
似乎所有报告此问题的人都会从中获得解决方案或更新Vagrant。我将看到有关回滚版本的问题,但想知道我能做些什么才能使当前版本正常工作。
修改
我已回滚到版本1.9.8并发现了一个新的但非常相似的错误:
C:\Users\Curtis>vagrant plugin install vagrant-digitalocean
Installing the 'vagrant-digitalocean' plugin. This can take a few minutes...
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 childprocess (= 0.5.8) and childprocess (= 0.6.3)
Activated childprocess-0.6.3
which does not match conflicting dependency (= 0.5.8)
Conflicting dependency chains:
childprocess (= 0.6.3), 0.6.3 activated
versus:
childprocess (= 0.5.8)
Gems matching childprocess (= 0.5.8):
childprocess-0.5.8
似乎是使用ruby / gems / bundler,但我对该生态系统几乎一无所知。
答案 0 :(得分:1)
借助以下地点的信息:
Bundler how to uninstall conflicting dependency https://github.com/hashicorp/vagrant/issues/8785
解决方法是使用以下格式的命令:
VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-hostsupdater
因为我在Windows上,所以这不太合适。我不得不将它添加到深度嵌套的环境变量UI中
然后我得到了一些解脱。看起来有一些工作要做,但至少这适用于此期间。
答案 1 :(得分:0)
在Windows上执行此操作的另一种(更简便的方法)是使用SET命令(仅在终端会话的整个生命周期内有效:
> set VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1
> vagrant plugin install vagrant-digitalocean
Installing the 'vagrant-digitalocean' plugin. This can take a few minutes...
Fetching: multipart-post-2.1.1.gem (100%)
Fetching: faraday-1.0.0.gem (100%)
Fetching: vagrant-digitalocean-0.9.3.gem (100%)
Installed the plugin 'vagrant-digitalocean (0.9.3)'!
>