Why is this “gem update” command giving an error?

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?

user1046014

Posted 2019-06-05T19:41:19.047

Reputation: 11

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.313

Have you tried putting --system after the --http option? If that doesn't work, then gem 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

No answers