Just installed node.js in windows 8. When I enter node -v in command prompt it successfully gives the version number v4.1.2 but when I use any npm command I get following error
module.js:338
throw err;
^
Error: Cannot find module 'readable-stream'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous>
(C:\Users\Vivek\AppData\Roaming\npm\node_modules\npm\node_modules\are-we-there-yet\index.js:2:14)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
How to fix this?
are-we-there-yetand why is it running? What command are you running to get the output you've shown? You have not given enough info.