bnolan / capt

Command line tool for creating backbone.js applications
293 stars 21 forks source link

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

Open mdikov opened 13 years ago

mdikov commented 13 years ago

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?

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)

ghost commented 13 years ago

Getting similar errors.

Capt:

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 commented 13 years ago

@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 commented 13 years ago

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