bnolan / bnolan/capt

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

Open
#12 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
293
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the view-generation failure from the tutorial, then inspect capt/src/main.coffee around line 231 where the stack trace reports mkdirSync. Trace the referenced templates/notes path and verify the server-starting follow-up error. Done means identifying the cause of both errors and recording a confirmed resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.