为了账号安全,请及时绑定邮箱和手机立即绑定

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)


正在回答

3 回答

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

1 回复 有任何疑惑可以回复我~

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

然后再执行gem install sass

7 回复 有任何疑惑可以回复我~
#1

唯尔半截湘妃

大哥,厉害呀
2017-07-18 回复 有任何疑惑可以回复我~
#2

callosity_CC3966041

用你的方法成功解决了。。。给你刷波666
2017-09-03 回复 有任何疑惑可以回复我~
#3

慕粉6343533

万分感谢!
2018-02-06 回复 有任何疑惑可以回复我~
#4

慕码人3046078

原来HTTP不能加S,我试了好久。复制你的搞通了6666666
2018-02-06 回复 有任何疑惑可以回复我~
查看2条回复

sass更换源后重新安装一下

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

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信