Error: SASS installation for windows

前端 未结 11 1256
说谎
说谎 2020-12-04 17:20

am trying to install sass after installing ruby, but iam getting following error, please help me to fix this

    maradhak@WW730VW7X1688 /c/softwares
    $ ge         


        
相关标签:
11条回答
  • 2020-12-04 18:02

    Short answer:

    gem sources -a http://rubygems.org/
    

    Confirm than you don't really care about that specific warning, since you trust rubygems.org. Then:

    gem install sass
    

    And it works.

    0 讨论(0)
  • 2020-12-04 18:07

    The first step to Rubygems(http://rubygems.org/) then download sass on(http://rubygems.org/gems/sass) put in: npm install

    0 讨论(0)
  • 2020-12-04 18:07

    Changing from http to https makes your computer vulnerable to hackers

    I explain some solutions in my answer here: https://stackoverflow.com/a/40075753/845413

    If you found this error by searching and are using RVM on OSX just run.

    rvm osx-ssl-certs update all
    

    Bundler outlines a few other solutions in their troubleshooting guide for this error: http://bundler.io/v1.16/guides/rubygems_tls_ssl_troubleshooting_guide.html#troubleshooting-certificate-errors

    and include...

    gem install bundler
    gem update --system
    

    Finally, you can simply reinstall RVM or rubygems manually.

    Manually install Ruby gems: https://rubygems.org/pages/download

    Manually install RVM (recommended): http://rvm.io/

    0 讨论(0)
  • 2020-12-04 18:13

    Install a full fledged Cygwin on your windows, the ssh support is good in it. You should be able to install it without any extra efforts, well I always do. In fact once you have Cygwin install you would hardly use the command prompt.

    0 讨论(0)
  • 2020-12-04 18:15

    I also encountered the same problem today。

    Running gem install sass returned

    ERROR:  Could not find a valid gem 'sass' (>= 0), here is why:Unable to download data from https://rubygems.org/ -SSL_connect returned=1 errno=0 state=SSLv3read server certificate B: certificate verify failed(https://api.rubygems.org/specs.4.8.gz)
    

    Then I find a way to fix it:

    1. gem sources -a http://rubygems.org/
    2. gem install sass

    Adding http://rubygems.org/ to sources solves this.

    Here is a capture of my terminal

    0 讨论(0)
  • 2020-12-04 18:16

    The error has something to do with being vulnerable to the Poodle SSL bug, it will not be verified for that reason. If there's a way to upgrade to a better certificate, but at the time of writing this answer, I could not find the upgraded certificate.

    I used the non-SSL host instead, altough I should note that this is not the best nor a permanent solution, it lacks security.

    The command used:

    gem source -a http://rubygems.org/
    

    A discussion about this subject can be found here: https://github.com/rubygems/rubygems/issues/515#issuecomment-65326585

    Update: There seems to be a permanent solution now, which replaces the certificate with a proper protected one. It can be found on the following URL, an tutorial is included in that page. https://gist.github.com/luislavena/f064211759ee0f806c88#installing-using-update-packages-new

    0 讨论(0)
提交回复
热议问题