How can I set a proxy server for gem?

后端 未结 7 500
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 17:47

I am unable to install SASS through command prompt.

I tried below steps

c:\\gem install sass

I am getting below error:

         


        
相关标签:
7条回答
  • 2020-11-30 18:17

    None of the answers here actually helped my case (proxy + password), instead I found a solution on a Github issue:

    https://github.com/rubygems/rubygems/issues/1068

    Basically I had to set three variables:

    set http_proxy=proxy_ip:port
    set http_proxy_user=user
    set http_proxy_pass=password
    
    0 讨论(0)
提交回复
热议问题