E:/Ruby22-x64/lib/ruby/2.2.0/open3.rb:193:in 'spawn': Permission denied - E:\Ruby22-x64\bin install rubygems-update -v 2.7.6 --no-ri --no-rdoc (Errno::EACCES) from E:/Ruby22-x64/lib/ruby/2.2.0/open3.rb:193:in 'popen_run' from E:/Ruby22-x64/lib/ruby/2.2.0/open3.rb:93:in 'popen3' from E:/Connector/install_gems.rb:73:in 'run_command' from E:/Connector/install_gems.rb:39:in 'block (2 levels) in main' from E:/Connector/install_gems.rb:37:in 'each' from E:/Connector/install_gems.rb:37:in 'block in main' from E:/Connector/install_gems.rb:35:in 'chdir' from E:/Connector/install_gems.rb:35:in 'main' from E:/Connector/install_gems.rb:84:in '<main>'
Windows
Any currently open command prompts will need to be closed in order to ensure that the updated environment variable is applied.
Make sure you are not overriding GEM_COMMAND in the User section of the environment variables as shown in the image below. The System settings shows a valid configuration, however it is being overridden by the User variable which is incorrect.