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;
I also got the same issue , u should try npm install , npm update is also an option but with npm update latest npm version will be installed in your local environement . This is not desirable for global project as u may find unmet dependencies issue at global environment then.
I would suggest use npm install