How to configure Compass build with rbenv in Subli

2019-09-05 12:27发布

问题:

Trying to build a SASS file under OSX with rbenv and the default Compass build file results in:

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

How to fix?

回答1:

Add this to your ~/Library/Application Support/Sublime Text 2/Packages/Compass/Compass.sublime-build file:

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

You may have to restart Sublime.