Just installed SASS, but can't get its version

2019-04-27 05:13发布

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

enter image description here

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条回答
我命由我不由天
2楼-- · 2019-04-27 05:34

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
查看更多
登录 后发表回答