Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "Error: ENOENT, No such file or directory..." #12

Open
mdikov opened this issue Aug 26, 2011 · 3 comments
Open

Getting error "Error: ENOENT, No such file or directory..." #12

mdikov opened this issue Aug 26, 2011 · 3 comments

Comments

@mdikov
Copy link

mdikov commented Aug 26, 2011

I am following your tutorial but when I try to create the view I get this error. I did create the folder and re-ran the view generation, but then I get another error and the server will not start at all.

What could be the reason?

  • Using coffeescript version 1.0.1

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ENOENT, No such file or directory '/Users/mydir/notes/app/templates/notes'
at Object.mkdirSync (fs.js:360:18)
at /Users/mdikov/node_modules/capt/src/main.coffee:231:10
at /Users/mdikov/node_modules/capt/src/main.coffee:33:7
at Object. (/Users/mdikov/node_modules/capt/src/main.coffee:208:3)
at Object. (/Users/mdikov/node_modules/capt/src/main.coffee:241:4)
at Module._compile (module.js:402:26)
at Object..coffee (/Users/mydir/node_modules/capt/node_modules/coffee-script/lib/coffee-script.js:11:21)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at require (module.js:346:19)

dharFr added a commit to dharFr/capt that referenced this issue Sep 13, 2011
Seems more consistent with the existing folder tree and with the
documentation if the 'templates' folder is under the 'app' folder.
@ghost
Copy link

ghost commented Sep 20, 2011

Getting similar errors.

Capt:

  • Using coffeescript version 1.0.1

node.js:116
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ENOENT, No such file or directory '/Users/george.norris/WebPractice/notesss/app/templates/generate'
at Object.mkdirSync (fs.js:329:18)
at /usr/local/lib/node/.npm/capt/0.5.5/package/src/main.coffee:234:10
at /usr/local/lib/node/.npm/capt/0.5.5/package/src/main.coffee:33:27
at Object. (/usr/local/lib/node/.npm/capt/0.5.5/package/src/main.coffee:211:3)
at Object. (/usr/local/lib/node/.npm/capt/0.5.5/package/src/main.coffee:244:4)
at Module._compile (module.js:374:26)
at Object..coffee (/usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/coffee-script.js:11:21)
at Module.load (module.js:306:31)
at Function._load (module.js:272:10)
at require (module.js:318:19)

@dharFr
Copy link

dharFr commented Sep 21, 2011

@gn3 : You should have a look at @bleeppurple fork or mine. We both solved this problem but with a different approch (different folder organisation). Choose the one that fit your needs...

@bleeppurple
Copy link

I dont know how well it works...I threw it together in 2 mins
I've taken a different approach and scrapped capt in favour of
thor + guard to create templates/scaffolds and watch files
I'd probably switch back to capt if i could customise it a bit more using something like thor
p.s. everything is built using requirejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants