fatal:Mixlib::ShellOut::ShellCommandFailed:expected process to exit with but received 1


#1

if RUBY_VERSION =~ /^1.9.1/ && defined?(Gem::QuickLoader)
Gem::QuickLoader.load_full_rubygems_library
end

require 'rubygems’
require 'rubygems/gem_runner’
require ‘rubygems/exceptions’

required_version = Gem::Requirement.new “>= 1.8.7”

unless required_version.satisfied_by? Gem.ruby_version then
abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
end

args = ARGV.clone

begin
Gem::GemRunner.new.run args
rescue Gem::SystemExitException => e
exit e.exit_code
end
this is the gem code which is present at C:/opscode/chef/embedded/bin/gem.rb

so error is expected process to exit with [0] but received 1.

now give me solution that In above code from where it comes like we are passing
args=ARGV.clone
so Is there any problem with this particular args which is passing .
Please reply me.

Regards,
Seema Khalkar.