Shell CakePHP:Cakefile与CoffeeScript冲突

Shell CakePHP:Cakefile与CoffeeScript冲突,shell,cakephp,cakephp-1.3,coffeescript,Shell,Cakephp,Cakephp 1.3,Coffeescript,当我试图使用'cake'命令时,我总是会遇到这个错误。这似乎与咖啡脚本有冲突 /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:108 throw new Error("Cakefile not found in " + (process.cwd())); ^ Error: Cakefile not found in /Users/kevingorjan/e-Merce/Learning/CakeP

当我试图使用'cake'命令时,我总是会遇到这个错误。这似乎与咖啡脚本有冲突

/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:108
throw new Error("Cakefile not found in " + (process.cwd()));
      ^
Error: Cakefile not found in /Users/kevingorjan/e-Merce/Learning/CakePHP/Blog_demo/lib/Cake/Console
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:108:11
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:106:14

如何修复此问题?

$vi.bash\u配置文件

我有node和coffeescript,还有各种各样的东西。My.bash_配置文件中包含以下行:

#Path
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/share/npm/bin:$PATH"
当我像他们建议的那样将蛋糕添加到我的路径时,我得到了与您相同的错误:

#Path
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/share/npm/bin:$PATH"

export PATH="$PATH:/Users/eO_Ae/cakephp/lib/Cake/Console"
我所做的修复工作是:

# Cake PHP
PATH="/Users/eO_Ae/cakephp/lib/Cake/Console:$PATH"

# Path
PATH="$PATH:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/share/npm/bin"

export PATH
这使得cakephp
cake
shell命令的优先级高于coffescript命令


干杯

谢谢,但我不知道如何更改它?好吧,我在bashrc中添加了路径,重新加载了bashrc,但它不起作用。现在我将CoffeeScript中的“cake”-命令改为“cakes”,现在它工作得很好,但我认为这不是正确的解决方案。有什么建议吗?好的,找到了,改变了,现在它工作得很好!谢谢谢谢,我更喜欢这个解决方案!解决我的问题!谢谢