I\'m using ubuntu and I\'m trying to run a script using nodejs and i\'m getting this error.
/home/bebz/Documents/test# node server.js module.js:338 throw err;
This error occurs when module name and file name does not match. It's resolved after using the same name for module and file name. e.g.
module - Hello, File name - Hello.js