berks cookbook name_of_my_cookbook
/opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems.rb:271:
in find_spec_for_exe: can't find gem berkshelf (>= 0.a) (Gem::GemNotFoundException)
from /opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems.rb:299:in activate_bin_path
from /usr/local/bin/berks:23:in
我试图通过
gem install berkshelf
ERROR: Error installing berkshelf:
There are no versions of solve (~> 4.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
solve requires Ruby version >= 2.1.0. The current ruby version is .
我没有其他办法来解决这个问题。我是个新手,所以我很感谢你的帮助。