我正在尝试为咖啡脚本添加 textmate 包。我已按照 github 上的说明进行操作 - https://github.com/jashkenas/coffee-script-tmbundle
当我尝试编译和显示 JavaScript 时,我收到以下错误 -
/tmp/temp_textmate.8hqQGD: line 12: coffee: command not found
我相当肯定这是因为我的路径在 textmate 的偏好中不正确。
我正在尝试按照有关此问题的说明进行操作 -CoffeeScript TextMate 运行命令,但我一定做错了,因为它不起作用。
当我做哪种咖啡时,我得到 /usr/local/bin/coffee
我在 textmate 的首选项中没有 TM_PATH 变量,只有一个 PATH 那么,我应该在 textmate 中的 PATH 变量中添加什么?我目前有 /usr/bin:/bin:/usr/sbin:/sbin
我尝试将其更改为 /usr/local/bin/ 但是当我尝试运行命令时,我得到
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/bash_init.sh: line 27: dirname: command not found
有任何想法吗?