visionmedia/mocha — Issue #142: Can't run tests
Author: iamleppert
Created: 2011-12-12 22:28:30+00:00
State: open

[~] $ mkdir mocha-test
[~] $ cd mocha-test/
./ ../
[mocha-test] $ npm install mocha
mocha@0.3.6 ./node_modules/mocha
├── debug@0.1.0
└── commander@0.3.2
[mocha-test] $ ls
node_modules/ ./ ../
[mocha-test] $ cd node_modules/
mocha/ ./ ../ .bin/
[node_modules] $ cd mocha/
Makefile bin/ editors/ images/ lib/ node_modules/ support/ test/ ./ ../ mocha.css .gitignore index.js mocha.js test.js package.json History.md Readme.md .npmignore .travis.yml
[mocha] $ make test-all

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'should'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Command. (/Users/johnathan/mocha-test/node_modules/mocha/bin/mocha:86:3)
at Command.emit (events.js:88:20)
at Command.parseOptions (/Users/johnathan/mocha-test/node_modules/mocha/node_modules/commander/lib/commander.js:426:14)
at Command.parse (/Users/johnathan/mocha-test/node_modules/mocha/node_modules/commander/lib/commander.js:322:20)
at Object. (/Users/johnathan/mocha-test/node_modules/mocha/bin/mocha:105:9)
at Module._compile (module.js:432:26)
make: *** [test-bdd] Error 1