2017-09-15 117 views
0

我的版本:流浪vagrantfile版本不匹配

VBoxManage --version 
5.1.28r117968 

vagrant -v 
Vagrant 2.0.0 

當我運行流浪漢起來,我得到這樣 輸出當我運行流浪漢起來,我得到這樣

Vagrant failed to initialize at a very early stage: 

The plugins failed to load properly. The error message given is 
shown below. 

This Vagrant environment has specified that it requires the Vagrant 
version to satisfy the following version requirements: 

~> 1.5 

You are running Vagrant 2.0.0, which does not satisfy 
these requirements. Please change your Vagrant version or update 
the Vagrantfile to allow this Vagrant version. However, be warned 
that if the Vagrantfile has specified another version, it probably has 
good reason to do so, and changing that may cause the environment to 
not function properly. 

我我需要什麼輸出?

+0

可以運行'流浪漢插件list' –

+0

'無業遊民,berkshelf(5.1.1) - 版本約束:> = 2.0.1 | vagrant-share(1.1.9,system) - 版本約束:> 0 | vagrant-vbguest(0.14.2) - 版本約束:> 0 | vagrant-vmware-workstation(4.0.24) - 版本約束:> 0' – mak

回答

0

而有罪是流浪-bershelf對流浪者的1.x的分支,你可以從這個line of code

module Berkshelf 
    class Plugin < Vagrant.plugin("2") 
    # Require a particular version of Vagrant 
    Vagrant.require_version("~> 1.5") 

    name "berkshelf" 

檢查很強的依賴性有以下幾種可能的解決方案:

  • 如果你不需要插件,只需卸載它
  • 你需要問插件的所有者現在升級到2.x(或提供一個pull請求到pr oject與升級)
  • 恢復到1.9倍流浪漢版本