我为 Sublime Text 2 创建了这个构建系统来运行我的 Grunt 项目:
{
"cmd": ["grunt"] ,
"selector": ["source.js", "source.less", "source.json"] ,
"working_dir": "${project_path}/MyProject" ,
"path": "/Users/me/.nvm/v0.10.0/bin",
"shell": true
}
每次我尝试构建时,都会收到此错误:
Warning: You need to have Ruby and Sass installed and in your PATH for
this task to work. More info:
尽管我已经安装了Ruby
和Sass
,并且两者都在终端中可用。另外,我试过"echo $PATH"
了,看起来还可以...
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/me/.venvburrito/bin:/Users/me/.nvm/v0.8.22/bin:/opt/local/bin:/opt/local /sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/me/.rvm/gems/ruby-2.0.0-p0 /bin:/Users/me/.rvm/gems/ruby-2.0.0-p0@global/bin:/Users/me/.rvm/rubies/ruby-2.0.0-p0/bin:/Users/me/ .rvm/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin: /usr/local/bin:/usr/X11/bin:/usr/local/git/bin
为什么 sublime 似乎无法访问我的环境变量?