这真是愚蠢,但我已经谷歌搜索了一个小时,却找不到答案。
我在Ubuntu 10.10上,并且尝试更新到最新版本的SASS,以便可以在@import
规则中使用@media
规则。
如此处建议;https://github.com/nex3/sass/issues/64,我尝试过:
$ sudo gem install sass --pre
那似乎很好用:
Successfully installed sass-3.2.0.alpha.35
1 gem installed
但是,当我尝试时$ sass -v
,会得到:Haml/Sass 3.0.9 (Classy Cassidy)
这是更新之前的旧版本。
我究竟做错了什么?
$ which gem
/usr/bin/gem
$ which sass
/usr/bin/sass
尝试了答案:
$ sass -v
Haml/Sass 3.0.9 (Classy Cassidy)
$ sudo gem uninstall -Iax sass
Removing sass
Removing sass-convert
Removing scss
Successfully uninstalled sass-3.2.0.alpha.35
$ sass -v
Haml/Sass 3.0.9 (Classy Cassidy) (Was expecting an error here)
$ sudo gem install sass --pre
Successfully installed sass-3.2.0.alpha.35
1 gem installed
Installing ri documentation for sass-3.2.0.alpha.35...
Installing RDoc documentation for sass-3.2.0.alpha.35...
$ sass -v
Haml/Sass 3.0.9 (Classy Cassidy)
因此,它删除了我成功安装的程序,并保留了我运行sass
命令时实际使用的程序。hou?
sudo gem update sass
对我有用。
which gem
然后再将which sass
输出添加到您的问题中吗?