本文介绍了刚刚安装了SASS,但无法获得它的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 所以我从终端安装了SASS,只需 gem install sass 并且我看到它说成功安装了sass-3.2.9。但是,当我做了 sass --version 或 sass --v 我得到这个错误: -bash:sass:找不到命令 ? 我唯一能想到的是当我在Tuts上做Git教程的时候我遇到了一个局部vs全局问题,或者我不得不编辑一个bash_profile文件: 这就是bash_profile文件在我的用户目录中: export PATH =/ usr / local / bin:$ PATH 任何想法或提示?关于为什么我无法获得刚刚安装的SASS或Compass版本?我可以得到 ruby --version 。解决方案 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 So 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 --vI 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 get ruby --version. 解决方案 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 这篇关于刚刚安装了SASS,但无法获得它的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-01 16:16