Installing ChefDK and allowing it to use Berksfile in version 2.x format. This also helps resolving the nokogiri issue for installing 18.104.22.168 .
Using ChefDK to create and or manage existing cookbooks. When installing the software it has its own embedded ruby environment with its necessary version of berkshelf. When you want to use an older version of berks along side ChefDK you sometimes get an error with nokogiri. This post helps resolve that error.
After installing ChefDK, goto your cookbook with the Gem file and Berksfile that says something to the order of:
You need to get your own berks installed to your home directories berks path:
For RedHat Linux
If for some reason this does not work, run the following: