I am newbie and I am writing a simple program based Node.js. everything is fine until I added this line:
process.addListener('SIGINT', function(){ console.log( 'Sigint test.' ); } );
Run: Node sample.js
I got following message:
node.js:203
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: No such module
at EventEmitter.<anonymous> (node.js:361:27)
at Object.<anonymous> (D:\Nodejs\MySample\sample.js:13:9)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.<anonymous> (module.js:470:10)
at EventEmitter._tickCallback (node.js:195:26)
Environment:
Windows XP sp2 Node.js 0.5.9 for Windows
help me please...