0
I get the following error for a gem update:
$ gem update --system --http-proxy=http://username:password@proxy.abc.com:8080
ERROR: While executing gem ... (OptionParser::InvalidArgument)
invalid argument: --http-proxy=http://username:password@proxy.abc.com:8080
Why is it giving this error?
Did not fix--- $gem update --system --http-proxy=http://username:password@proxy.abc.com:8080 ERROR: While executing gem ... (OptionParser::InvalidArgument) invalid argument: --http-proxy http://
– user1046014 – 2019-06-05T20:11:00.313Have you tried putting
--system
after the--http
option? If that doesn't work, thengem
doesn't like your URL and you may simply need to set the HTTP proxy information elsewhere (e.g. in your environment variables). Note that if anything in your URL (such as your username or password) contains special characters, you'll likely need to URL encode them as well. – Anaksunaman – 2019-06-05T21:10:38.137