2014-09-20 20 views
0

我只是尝试使用jake,但发现真正奇怪的问题,因为jake无法加载jakefile。你有什么想法如何解决它。无法加载jakefile

目录结构:

jake_test >> jake.sh

jake_test >> jakefile.js

jake.sh文件

node_modules/.bin/jake $* 

命令来获得登录:

./jake.sh --trace 

下面是跟踪日志:

jake aborted. 
Error: No Jakefile. Specify a valid path with -f/--jakefile, or place one in the current directory. 
at api.fail (/opt/lampp/htdocs/jake_test/node_modules/jake/lib/api.js:336:18) 
at EventEmitter.utils.mixin.run (/opt/lampp/htdocs/jake_test/node_modules/jake/lib/jake.js:319:9) 
at Object. (/opt/lampp/htdocs/jake_test/node_modules/jake/bin/cli.js:25:10) 
at Module._compile (module.js:456:26) 
at Object.Module._extensions..js (module.js:474:10) 
at Module.load (module.js:356:32) 
at Function.Module._load (module.js:312:12) 
at Function.Module.runMain (module.js:497:10) 
at startup (node.js:119:16) 
at node.js:901:3 

帮助确实appriciated。

+0

我在Ubuntu 13.10上;杰克版本8.0.9 – 2014-09-20 13:17:21

回答

0

其实,因为我使用区分大小写的操作系统,所以'jakefile.js'必须以大写'J'开始。

感谢James Shore。

0

在错误中提到:

jake aborted. 
Error: No Jakefile. Specify a valid path with -f/--jakefile, or place one in the current directory. 

这不是能找到Jakefile.js在当前目录。在你的情况下,你有jakefile.js,但这应该是Jakefile.js。这将适用于像Windows这样的系统,但是像* nix这样的系统会面临这种问题。