Windows 7 我怎么告诉蛋糕在哪里找咖啡?

Windows 7 我怎么告诉蛋糕在哪里找咖啡?,windows-7,coffeescript,git-bash,cakefile,Windows 7,Coffeescript,Git Bash,Cakefile,设置twilson63创建的。蛋糕似乎找不到咖啡,但他们都喜欢哪一种。我还有别的事要做吗?以下是我的步骤: jcollum@DEVELOPER01 ~/dev/express-coffee-master $ which coffee /c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-script/bin/coffee 好的,咖啡在那里 jcollum@DEVELOPER01 ~/dev/express-coffee-master

设置twilson63创建的。蛋糕似乎找不到咖啡,但他们都喜欢
哪一种
。我还有别的事要做吗?以下是我的步骤:

jcollum@DEVELOPER01 ~/dev/express-coffee-master
$ which coffee
/c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-script/bin/coffee
好的,咖啡在那里

jcollum@DEVELOPER01 ~/dev/express-coffee-master
$ which cake
/c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-script/bin/cake
蛋糕也是

jcollum@DEVELOPER01 ~/dev/express-coffee-master
$ cake
Cakefile defines the following tasks:

cake docs                 # Generate annotated source code with Docco
cake build
cake spec                 # Run Mocha tests
cake test                 # Run Mocha tests
cake dev                  # start dev env
cake debug                # start debug env
cake scaffold             # scaffold model/controller/test

  -n, --name         name of model to `scaffold`
Cake在本地发现了一个cakefile

jcollum@DEVELOPER01 ~/dev/express-coffee-master
$ cake dev

c:\Users\jcollum\dev\express-coffee-master\node_modules\which\which.js:83
  throw new Error("not found: "+cmd)
        ^
Error: not found: coffee
    at Function.whichSync [as sync] (c:\Users\jcollum\dev\express-coffee-master\node_modules\which\which.js:83:9)
    at Object.options [as action] (c:\Users\jcollum\dev\express-coffee-master\Cakefile:121:17)
    at helpers.extend.invoke (c:\Users\jcollum\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-script\cake.js:44:26)
    at Object.exports.run (c:\Users\jcollum\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-script\cake.js:69:21)
    at Object.<anonymous> (c:\Users\jcollum\AppData\Roaming\npm\node_modules\coffee-script\bin\cake:7:38)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
jcollum@DEVELOPER01~/dev/express咖啡大师
$cake dev
c:\Users\jcollum\dev\express coffee master\node\u modules\which\which.js:83
抛出新错误(“未找到:“%cmd”)
^
错误:未找到:咖啡
在Function.whichSync[作为同步](c:\Users\jcollum\dev\express coffee master\node\u modules\which\which.js:83:9)
在Object.options[作为操作](c:\Users\jcollum\dev\express coffee master\Cakefile:121:17)
在helpers.extend.invoke(c:\Users\jcollum\AppData\Roaming\npm\node\u modules\coffee script\lib\coffee script\cake.js:44:26)
在Object.exports.run(c:\Users\jcollum\AppData\Roaming\npm\node\u modules\coffee script\lib\coffee script\cake.js:69:21)
反对。(c:\Users\jcollum\AppData\Roaming\npm\node\u modules\coffee script\bin\cake:7:38)
在模块处编译(Module.js:449:26)
在Object.Module._extensions..js(Module.js:467:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
位于Module.runMain(Module.js:492:10)

BZZZTTT!不。我怀疑这是Windows7和node不能很好地协同工作的问题

答案似乎是确保我的环境中有一个节点路径:

export NODE_PATH=/c/Users/jcollum/AppData/Roaming/npm:/c/Users/jcollum/AppData/Roaming/npm/NODE_模块

或者,将
节点\u模块添加到.bash\u配置文件中的我的路径中


我的想法是:

你提到的蛋糕不是cakePHP,对吗?我想你指的是cake.coffee(make for CoffeeScript的简化版)。我被标签弄糊涂了。@jimiyash是的,一定是选错标签了;看起来benzado收到了谢谢benzado