Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created July 30, 2015 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcharlton/5a3c670069a0d5c5b991 to your computer and use it in GitHub Desktop.
Save nickcharlton/5a3c670069a0d5c5b991 to your computer and use it in GitHub Desktop.
% vagrant provision
The following berks command failed to execute:
/Users/nickcharlton/.gem/ruby/2.2.2/bin/berks --version --format json
The stdout and stderr are shown below:
stdout:
stderr: /Users/nickcharlton/.rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'berkshelf' (>= 0) among 84 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/nickcharlton/.vagrant.d/gems:/opt/vagrant/bin/../embedded/gems', execute `gem env` for more information
from /Users/nickcharlton/.rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
from /Users/nickcharlton/.rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /Users/nickcharlton/.gem/ruby/2.2.2/bin/berks:22:in `<main>'
It appears that you are not using the ChefDK. Please note that Vagrant Berkshelf
works best when used with the ChefDK, and other installation methods are not
officially supported.
Please download and install the latest version of the ChefDK from:
https://downloads.chef.io/chef-dk
and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment