Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem install sass (mac) #10

Open
xhlwill opened this issue Mar 22, 2017 · 0 comments
Open

gem install sass (mac) #10

xhlwill opened this issue Mar 22, 2017 · 0 comments
Labels

Comments

@xhlwill
Copy link
Owner

xhlwill commented Mar 22, 2017

跑项目时提示sass-loader解析不了,发现虽然安装了node-sass但是还需要sass,在天朝由于众所周知的原因直接用 sudo gem install sass 会没反应

不过幸好还有淘宝的镜像 https://ruby.taobao.org/【已迁移为 Ruby China 镜像 https://gems.ruby-china.org/】可以用

首先移除原来的 sources 地址,换上淘宝 Ruby China 镜像的地址,然后再安装就可以了(官网提示org域名备案不了,换成了com😂)

$ gem sources --remove https://rubygems.org/
$ gem sources -a https://gems.ruby-china.com/
$ gem sources -l 
*** CURRENT SOURCES ***

https://gems.ruby-china.com/

$ sudo gem install sass

最后用 sass -v 能看到版本号就表明成功了 😄

$ sass -v
Sass 3.5.4 (Bleeding Edge)
@xhlwill xhlwill changed the title [mac] install sass gem install sass (mac) Mar 22, 2017
@xhlwill xhlwill added the Sass label May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant