Reputation: 5776
I have a ~\Cakefile that looks like this:
task 'say:hello', 'Howdy!', (options) ->
console.log 'Hello, world!'
But running cake
(which resolves to C:\Users\bstraub\AppData\Roaming\npm\cake.cmd
since it was installed with npm
) gives this error:
Error: Cakefile not found in C:\Users\bstraub
The file exists. What am I doing wrong?
Upvotes: 0
Views: 1088
Reputation: 5776
path.exists
and path.existsSync
were broken for Windows in node 0.6.9. Updating to 0.6.13 corrects this, and cake
works.
Upvotes: 1
Reputation: 10824
Cakefile
and not CakeFile
or something.~\Cakefile
maps to C:\Users\bstraub\Cakefile
.
The ~
might map to some other dir, depending on your system config
(e.g., with cygwin, git-bash, or a funny corporate env var setup).cd ~
really brings you to C:\Users\bstraub
Upvotes: 0