I was trying to install expressjs.
I keep getting this error here :
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: No such module
at Object.<anonymous> (/usr/share/npm/lib/utils/output.js:8:21)
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 Module.require (module.js:357:17)
at require (module.js:368:17)
at Object.<anonymous> (/usr/share/npm/lib/utils/log.js:21:14)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
any idea why that error is occurring. I installed npm there doesnt seem to be any problem with that.
this is the command I try to use for installing express js :
sudo npm install express -g
I tried with the guide on the expressjs website as well. Sorry, my bad. dint install latest version of nodejs
This happens if you have a newer version of Node.js and an older version of NPM. It sounds like you just updated Node.js, so now you need to update NPM.