daniellmb / angular-test-patterns

A High-Quality Guide for Testing Angular 1.x
MIT License
867 stars 100 forks source link

Error: Cannot find module './lib/tester.util' #3

Closed lsiden closed 10 years ago

lsiden commented 10 years ago

module.js throws an exception when I try to run "npm test" immediately after setup, following the README instructions.

Please see related output of command at https://gist.github.com/lsiden/9161456.

Also, after completely uninstalling and re-installing nodejs for good measure, it no longer writes anything to npm-debug.log.

Is it possible I am missing something from my environment?

lsiden commented 10 years ago

I suspect it is having trouble because coffee require() does not recognize the extension ".coffee.md".

Since angular-test-patterns/node_modules/coffee-script/lib/coffee-script/cofee-script.js contains code to parse these extensions, I suspect that the line "require('coffee-script') may be loading coffee from somewhere else. I do not yet know node well enough to get it to tell me where it's looking, but I'm working on that now.

lsiden commented 10 years ago

This answered my question of how module.require looks for files: https://www.readability.com/articles/a0q3pcdz

But it didn't answer my question as to why coffee won't parse module.md files, since node should be finding coffee in angular-test-patterns/node_modules