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

来源:2-2 Sass安装(windows版)

paopao_zxc

2016-02-25 12:27

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回答

  • 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

    慕码人304...

    原来HTTP不能加S,我试了好久。复制你的搞通了6666666

    2018-02-06 14:48:45

    共 5 条回复 >

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

    sass更换源后重新安装一下

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

Sass入门篇

Sass入门视频教程,学会Sass使你摆脱重复编写代码的工作

104420 学习 · 263 问题

查看课程

相似问题