node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module './router'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
at Object.<anonymous> (/home/kumar/dev/nodejs/helloworld/index.js:2:14)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at Array.<anonymous> (module.js:421:10)
at EventEmitter._tickCallback (node.js:126:26)
kumar@kumar-Lenovo-B460:~/dev/nodejs/node/node$ make test
Waf: Entering directory `/home/kumar/dev/nodejs/node/node/build'
DEST_OS: linux
DEST_CPU: ia32
Parallel Jobs: 1
Product type: program
Waf: Leaving directory `/home/kumar/dev/nodejs/node/node/build'
'build' finished successfully (0.097s)
python tools/test.py --mode=release simple message
=== release test-http-dns-fail ===
Path: simple/test-http-dns-fail
assert.js:81
throw new assert.AssertionError({
^
AssertionError: true == false
at EventEmitter.<anonymous> (/home/kumar/dev/nodejs/node/node/test/simple/test-http-dns-fail.js:60:10)
at EventEmitter.emit (events.js:81:20)
Command: build/default/node /home/kumar/dev/nodejs/node/node/test/simple/test-http-dns-fail.js
[00:45|% 100|+ 210|- 1]: Done
make: *** [test] Error 1
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
You'd use require("./router") for a project-local router.js file - one
that is sitting beside your index.js and server.js files. You'd use
require("router") for an installed dependency.
It seems that you expect 'router' to be coming from an installed
dependency, since you mention "npm install router", but your code is
expecting a project-local router.js file, which I assume you don't
have.
--
Martin Cooper