Just installed SASS, but can't get its version

廉价感情. 提交于 2019-12-07 00:21:12

问题


I installed SASS from the terminal, just gem install sass. And I see it says "Successfully installed sass-3.2.9."

However, when I then do sass --version or sass --v I get this error:

-bash: sass: command not found

The only thing I can think of is, when I was doing the Git tutorials on Tuts+ I ran into a local vs. global issue or I had to edit a bash_profile file.

This is what is inside the bash_profile file inside my user directory:

export PATH="/usr/local/bin:$PATH"

Any thoughts or tips on why I can't get the version of SASS or Compass I just installed? (I can only get ruby --version.)


回答1:


Got the answer! https://superuser.com/questions/600262/error-when-installing-and-trying-to-get-version-of-sass-via-terminal?noredirect=1#comment739892_600262

$ brew --prefix ruby
/usr/local/opt/ruby
$ stat -f%Y /usr/local/opt/ruby
../Cellar/ruby/2.0.0-p0
$ export PATH=/usr/local/opt/ruby/bin:$PATH
$ which sass
/usr/local/opt/ruby/bin/sass


来源:https://stackoverflow.com/questions/16760776/just-installed-sass-but-cant-get-its-version

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