2013-02-12 39 views
1

设置twilson63构建的express coffee app。看起来蛋糕找不到咖啡,但它们都可以用which。我还需要在这里做些什么吗?这是我的步骤:我该如何告诉蛋糕在哪里寻找咖啡?

[email protected] ~/dev/express-coffee-master 
$ which coffee 
/c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-script/bin/coffee 

好的咖啡就在那里。

[email protected] ~/dev/express-coffee-master 
$ which cake 
/c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-script/bin/cake 

蛋糕也是如此。

[email protected] ~/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。

[email protected] ~/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) 

Bzzzzttt!不。我怀疑这是Windows 7和节点不能很好地结合在一起的问题。

+0

你指的蛋糕不是cakePHP吧?我认为你指的是cake.coffee(CoffeeScript的make的简化版本)。我被标签弄糊涂了。 – jimiyash 2013-02-12 20:36:34

+0

@jimiyash是的,一定是选错了标签;看起来像benzado得到它感谢benzado – jcollum 2013-02-12 22:26:11

回答

0

看来答案是,以确保我在ENV有NODE_PATH:

export NODE_PATH=/c/Users/jcollum/AppData/Roaming/npm:/c/Users/jcollum/AppData/Roaming/npm/node_modules

要么,或加入node_modules我在.bash_profile文件路径。

想到这里:https://github.com/replit/jsrepl/issues/56

相关问题