问答详情
源自:2-2 Sass安装(windows版)

ERROR: Could not find a valid gem 'sass' (>= 0) in any repository

1 我执行了gem sources --remove https://rubygems.org/ 成功了

2 我执行 gem sources -a https://ruby.taobao.org/ 失败了错误如下

ERROR:  While executing gem ... (Errno::ENETRESET)

    The connection has been broken due to keep-alive activity detecting a failur

e while the operation was in progress. - recvfrom(2)

3 我试图将remove掉的源添加回来,执行了:gem sources --add https://rubygems.org/

但是报错,错误信息和第二步是一样的

ERROR:  While executing gem ... (Errno::ENETRESET)

    The connection has been broken due to keep-alive activity detecting a failur

e while the operation was in progress. - recvfrom(2)


提问者:paopao_zxc 2016-02-25 12:27

个回答

  • gg3417874
    2019-05-21 09:06:38

    域名备案问题,现在要改成这个。gem sources --add http://gems.ruby-china.com/ --remove https://rubygems.org/

  • 开心就好01200
    2017-06-29 14:12:32

    我试了很多都不行,这个可以gem sources --add http://gems.ruby-china.org/ --remove https://rubygems.org/    

    然后再执行gem install sass

  • 前端3o3
    2016-02-26 13:48:29

    sass更换源后重新安装一下

    http://awordpress.net/blog/how-to-install-sass-with-compass-windows7-step-by-step-guide/