osx - Installing SASS on Yosemite -


i'm struggling error in command line while trying install sass.

i'm following sass website recommend type in command line:

sudo gem install sass 

and here error got:

    my-macbook-pro:~ username$ gem install sass error:  not find valid gem 'sass' (>= 0), here why:           unable download data https://rubygems.org/ - errno::etimedout: operation timed out - connect(2) (https://rubygems.org/latest_specs.4.8.gz) error:  possible alternatives: sass 

then when try test if installed command line:

sass -v 

i got:

-bash: sass: command not found 

i have 2015 macbook pro latest osx yosemite.

alternatively, how install sass manually? see trying download https://rubygems.org/latest_specs.4.8.gz.

thanks in advance help!

that's because servers serving gems blocked in china (for whatever reason is). easier way solve be:

  1. open terminal
  2. gem sources -r https://rubygems.org/
  3. gem sources -a https://ruby.taobao.org/ (this mirror of rubygems.org)
  4. gem update --system
  5. sudo gem install sass

done. hope helps.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -