Sublime text 3 coffeescript build

时间:2014-09-08 04:57:09

标签: javascript coffeescript sublimetext2 sublimetext3

我一直收到这个错误:

[Errno 2] No such file or directory: 'coffee'
[cmd: ['coffee', '/Users/mmahalwy/Desktop/Code/opensource/ngprayertimes/prayertimes.coffee']]
[dir: /Users/mmahalwy/Desktop/Code/opensource/ngprayertimes]
[path: /usr/local/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/share/npm/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
[Finished]

我的CoffeeCompiler设置:

{


    /**
     * REQUIRED
     *
     * Where your `node` executable lives. If this is not specified, then
     * it is expected to be on Sublime's path.
     *
     * On OSX, for example:
     * `/usr/local/bin`
     */
    "node_path": "/usr/local/bin"


    /**
     * REQUIRED ONLY IF USING `executable` COMPILER
     *
     * Where your `coffee` executable lives.
     *
     * On OSX, for example:
     * `/usr/local/share/npm/lib/node_modules/coffee-script/bin`
     */
,    "coffee_path": "/usr/local/lib/node_modules/npm/node_modules/coffee-script/bin"


    /**
     * How should the plugin invoke your coffee executable.
     *
     * This can be the name of the executable if its in your path,
     * or it can be the absolute path to it (although in that case,
     * try to use the `coffee_path` setting).
     *
     * You can find where your executable is by running "which coffee"
     * in your terminal.
     *
     * Defaults:
     *   Windows   -> 'coffee.cmd'
     *   Linux/OSX -> 'coffee'
     */
,    "coffee_executable": "coffee"


    /**
     * Compile without a top-level function wrapper.
     *
     * Defaults to `false`.
     */
,   "bare": true


     /**
      * Show the CoffeeCompile right+click menu option for files of
      * these types.
      *
      * If the list is empty, the menu option will always be shown.
      *
      *
      * If you want to figure out the path to syntax file for a certain
      * filetype, do the following:
      *
      * 1. Open a new file.
      * 2. Hit `ctrl/cmd + shift + P` and set the syntax you want.
      * 3. Open the sublime console by pressing `ctrl/cmd + ~`.
      * 4. Execute `view.settings().get('syntax')` and copy paste the
      *    output here.
      *
      */
,    "syntax_patterns": [
          "Packages/CoffeeScript/CoffeeScript.tmLanguage"
     ,    "Packages/Better CoffeeScript/CoffeeScript.tmLanguage"
     ,    "Packages/Text/Plain text.tmLanguage"

     ]
}

虽然我可以将咖啡转换成javascript,但不知道为什么它不能正常工作。但我不能建立它?

0 个答案:

没有答案
相关问题