Vagrant Berkshelf 在您的 PATH 中找不到 'berks' 可执行文件。当 运行 'vagrant up'
Vagrant Berkshelf could not find the 'berks' executable in your PATH. When running 'vagrant up'
$ vagrant up
Bringing machine 'district' up with 'virtualbox' provider...
Vagrant Berkshelf could not find the 'berks' executable in your PATH.
Please download and install the latest version of the ChefDK from:
https://downloads.getchef.com/chef-dk
and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.
- 我按照提示下载了最新版的ChefDK
- 如何在 vagrant 文件中添加 Berkshelf 的路径?
这是我当前的 Vgrantfile:
$ cat Vagrantfile
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.define 'district' do |app|
app.vm.box = 'ubuntu/trusty64'
app.vm.provider 'virtualbox' do |v|
v.memory = 1024
v.name = 'district'
end
app.ssh.forward_agent = true
app.vm.network :forwarded_port, guest: 4567, host: 4567
app.vm.synced_folder './', '/home/vagrant/WhatsMyDistrict'
app.berkshelf.enabled = true
app.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.custom_config_path = 'chef_solo.config'
chef.run_list = ['whatsmydistrict::default']
end
end
end
$ vagrant up
Bringing machine 'district' up with 'virtualbox' provider...
Vagrant Berkshelf could not find the 'berks' executable in your PATH.
Please download and install the latest version of the ChefDK from:
https://downloads.getchef.com/chef-dk
and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.
- 我按照提示下载了最新版的ChefDK
- 如何在 vagrant 文件中添加 Berkshelf 的路径?
这是我当前的 Vgrantfile:
$ cat Vagrantfile
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.define 'district' do |app|
app.vm.box = 'ubuntu/trusty64'
app.vm.provider 'virtualbox' do |v|
v.memory = 1024
v.name = 'district'
end
app.ssh.forward_agent = true
app.vm.network :forwarded_port, guest: 4567, host: 4567
app.vm.synced_folder './', '/home/vagrant/WhatsMyDistrict'
app.berkshelf.enabled = true
app.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.custom_config_path = 'chef_solo.config'
chef.run_list = ['whatsmydistrict::default']
end
end
end