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

mocha init no longer works? #539

Closed
knewter opened this issue Aug 15, 2012 · 1 comment
Closed

mocha init no longer works? #539

knewter opened this issue Aug 15, 2012 · 1 comment

Comments

@knewter
Copy link

knewter commented Aug 15, 2012

So I saw that there was an init command, and tried it out. This was the result

$ ./node_modules/mocha/bin/mocha init .

fs.js:338
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory '/home/jadams/projects/USPTO_mindmap/node_modules/mocha/support/template.html'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.readFileSync (fs.js:182:15)
    at Command.<anonymous> (/home/jadams/projects/xxx/node_modules/mocha/bin/_mocha:91:19)
    at Command.action (/home/jadams/projects/USPTO_mindmap/node_modules/mocha/node_modules/commander/lib/commander.js:232:8)
    at Command.EventEmitter.emit (events.js:115:20)
    at Command.parseArgs (/home/jadams/projects/USPTO_mindmap/node_modules/mocha/node_modules/commander/lib/commander.js:399:12)
    at Command.parse (/home/jadams/projects/USPTO_mindmap/node_modules/mocha/node_modules/commander/lib/commander.js:349:15)
    at Object.<anonymous> (/home/jadams/projects/USPTO_mindmap/node_modules/mocha/bin/_mocha:168:9)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
@tj tj closed this as completed in eb73c7f Aug 15, 2012
@tj
Copy link
Contributor

tj commented Aug 15, 2012

it should work in the next release, I think npm implicitly ignores ./support directories

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

2 participants