2

I'm trying to install sass gem. Installing fails with timeout error.

Time out error Error: Could not find a valid gem 'sass' ()=0), here is why: Unable to download data from https ://rubygems.org/ - timed out (https: //api.rubygems.org/specs.4.8.gz)

I tried to change my gem source from https ://rubygems.org/ to http ://rubygems.org/. When I'm trying to change gem source it fails with this error:

this error

Error: While executing gem ... (Errno::ENOENT) No such file or directory @ rb_sysopen - H:/.gemrc

Can you help me with this issue?

(I've inserted spaces in links because I have less then 10 reputation)

Yan Germanovich
  • 163
  • 1
  • 1
  • 6
  • Can you connect manually to `rubygems.org` from the server? Why are you trying to remove it as a source? Do you have an alternate source? – Tom Lord Jun 26 '17 at 15:50
  • Also, please post your errors as (nicely formatted) **text**, not images (or links to images). – Tom Lord Jun 26 '17 at 15:51
  • @TomLord What do you mean by "connect manually"? I could load the site using browser. Is it an answer to your question? – Yan Germanovich Jun 27 '17 at 05:40

2 Answers2

1

You may be experiencing the issue with IPv6 that some others are, including myself. Here is another topic about it: gem cannot access rubygems.org

And numerous threads on rubygems.org: http://help.rubygems.org/discussions/problems/31074-timeout-error

wmakley
  • 1,233
  • 9
  • 18
0

Hard to say without some more info but judging from your second error - it may be that your PATH environment variable may be set incorrectly.

Looks like ruby is trying to read from the H:/ drive - is that where the interpreter is installed?. This may help [How do I add Ruby to the PATH variable on Windows?

user1032752
  • 751
  • 1
  • 11
  • 28