我正在尝试在食谱中安装 chefspec(4.6.1) 和 fauxhai(3.2.0)。我面临以下问题“在任何存储库中都找不到有效的 gem 'fauxhai' (~> 3.2) ”。我已经在其他食谱中安装了 chefspec4.4.0 和 fauxhai2.3.0。帮我解决以下问题。
> [2016-04-18T05:47:59-07:00] ERROR: chef_gem[chefspec] (tc3-chefspec::gem_install line 41) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
> ---- Begin output of C:/opscode/chef/embedded/bin/gem install C:\chef\cache\chefspec-4.4.0.gem -q --no-rdoc --no-ri -v "4.4.0" --local ----
> STDOUT:
> STDERR: ERROR: Could not find a valid gem 'fauxhai' (~> 2.3) in any repository
> ---- End output of C:/opscode/chef/embedded/bin/gem install C:\chef\cache\chefspec-4.4.0.gem -q --no-rdoc --no-ri -v "4.4.0" --local ----
> Ran C:/opscode/chef/embedded/bin/gem install C:\chef\cache\chefspec-4.4.0.gem -q --no-rdoc --no-ri -v "4.4.0" --local returned 2; ignore_failure is set, continuing
> [2016-04-18T05:47:59-07:00] INFO: Processing log[end tc3-chefspec::gem_install] action write (tc3-chefspec::gem_install line 54)
> [2016-04-18T05:47:59-07:00] INFO: end tc3-chefspec::gem_install
> [2016-04-18T05:47:59-07:00] INFO: Chef Run complete in 16.51561 seconds
> [2016-04-18T05:48:00-07:00] INFO: Running report handlers
> [2016-04-18T05:48:00-07:00] INFO: Report handlers complete