node.js shell环境变量与cakephp冲突
我已经在.profile文件中设置了环境路径,但是node.js shell环境变量与cakephp冲突,shell,cakephp,node.js,Shell,Cakephp,Node.js,我已经在.profile文件中设置了环境路径,但是 > cake 已由node.js coffeescript获取,并输出以下错误 node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cakefile not found in /Users/Devric at /opt/local/lib/node_modules/coffee-
> cake
已由node.js coffeescript获取,并输出以下错误
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cakefile not found in /Users/Devric
at /opt/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:96:11
at /opt/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:95:32
at /opt/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:95:32
at Object.run (/opt/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:46:19)
at Object.<anonymous> (/opt/local/lib/node_modules/coffee-script/bin/cake:7:38)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
修复了这个问题,将cakephp的cake shell重命名为cakes,这样它就不会与coffeescript cake文件冲突。您希望它做什么,为什么不能直接调用它?嗯。。要对cakephp而不是节点cakefile使用cake命令。如果我通过一个路径调用cake shell,那么该路径将锁定到shell的存储位置,这对于烘焙应用程序来说并不理想