无法从加载路径Test Kitchen加载'vagrant'驱动程序,无法下载新版本

问题描述 投票:0回答:1

[当我尝试在终端上运行kitchen test时,我受到欢迎

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. Did you mean: dummy, exec, proxy ? Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

我发现一个git问题,据说对于厨房流浪者,它可以回滚到0.16.0,所以我做到了,并且没有任何改变。我安装了最新版本的厨房无用宝石,并得到了以下信息:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ShellOut::ShellCommandFailed
>>>>>> Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT: 
STDERR: Thanks for wanting to use Vagrant! Unfortunately, this is not the way
to install Vagrant anymore. We now make installers for the various operating
systems Vagrant supports.

Vagrant is no longer distributed as a RubyGem. Please download the latest
version for your operating system from the URL below. If you still wish
to use the RubyGem version, you can manually install version 1.0.7. Note that
the RubyGem version hasn't been updated in over a year and will no longer
receive any updates.

Prior to installing Vagrant using the installer, make sure you uninstall
all your Vagrant gems, since they sometimes conflict.

http://www.vagrantup.com

If you want to learn more about why we don't distribute using RubyGems
anymore, please read this: http://mitchellh.com/abandoning-rubygems
---- End output of vagrant --version ----
Ran vagrant --version returned 1
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

因此,我去了无家可归的网站,下载了安装程序,进行了安装,删除了所有的gem,然后再次运行,然后再次遇到第一个错误。

vagrant yaml chef knife test-kitchen
1个回答
0
投票

从路径“〜/ chef-repo / cookbooks /”运行“厨房创建”时,我遇到了相同的错误

我通过在macOS终端窗口中运行以下命令来解决它。

$ sudo gem install kitchen-vagrant

注意:〜-表示用户的主目录。sudo-如果不需要,可以从命令中删除。

© www.soinside.com 2019 - 2024. All rights reserved.