Install SASS using gem on Windows 8

为君一笑 提交于 2019-12-01 04:35:33

问题


I am trying to install SASS on Windows 8 x64, but still getting errors, even when my firewall is switched off.

I make this command:

C:\Ruby200-x64\bin>gem install sass
(or C:\Ruby200-x64\bin>ruby -S gem install sass)

I get this response:

ERROR:  Could not find a valid gem 'sass' (>= 0), here is why:
          Unable to download data from http://rubygems.org/ - Errno::EACCES: Per
mission denied - connect(2) (http://rubygems.org/latest_specs.4.8.gz)

Does anybody know how to solve this problem, please?


回答1:


This is work for me. Try this...

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

answer y to the question "Do you want to add this insecure source?"

then you can use command...

gem install sass

  • good luck, guy!



回答2:


Problem solved

Even if Norton Security was disabled, Windows firewall was disabled, still was getting this error. After uninstalling Norton Security it worked.




回答3:


Try running your console with administrative privileges.



来源:https://stackoverflow.com/questions/16136006/install-sass-using-gem-on-windows-8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!