如何在Sublime Text 2中使用rbenv配置Compass构建?

时间:2012-12-04 22:06:40

标签: sublimetext2 compass-sass rbenv

尝试使用rbenv在OSX下构建SASS文件,并且默认的Compass构建文件会导致:

/bin/sh: compass: command not found
[Finished in 0.2s with exit code 127]

如何解决?

1 个答案:

答案 0 :(得分:1)

将其添加到您的~/Library/Application Support/Sublime Text 2/Packages/Compass/Compass.sublime-build文件中:

"osx": {
    "path": "/usr/local/bin:/Users/USERNAME/.rbenv/shims:$PATH"
},

您可能需要重新启动Sublime。