require('nodeunit') fails after npm install?
I don't know that this is a nodeunit bug, so much, but it has me stumped.
Using node 0.2.6, I installed nodeunit via npm. When I require nodeunit, though, it blows up:
crapple:node-v0.2.6 kurt$ node
> require('nodeunit')
Error: Cannot find module 'nodeunit'
at loadModule (node.js:275:15)
at require (node.js:411:14)
at cwdRequire (repl:29:10)
at [object Context]:1:1
at Interface.
I have node installed into ~/opt/, all my other npm packages are working fine. Can someone point me in the right direction?
How are you installing nodeunit, globally or locally?
So I don't see a fix or work around. I am using Windows, and installed via 'npm install nodeunit -g'. Receiving the following stack trace:
Error: Cannot find module 'nodeunit'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.