I installed nodejs and am trying to use npm on my Windows machine. I downloaded all the files from nodejs website. I tried to install the latest 4.4.2 version or 5.10.1 version, but I always got error Cannot find module 'readable-stream' when I tried to run commands using npm.
C:\Users\Ealon>node -v
v5.10.1
C:\Users\Ealon>npm -v
module.js:341
throw err;
^
Error: Cannot find module 'readable-stream'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (C:\Users\Ealon\AppData\Roaming\npm\node_modules\npm\node
modules\npmlog\node_modules\are-we-there-yet\index.js:2:14)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
I tried to reinstall it again and again, still could not fix this problem. And the answers in another similar question do not help because I always got error when I tried to run any command using npm. Any help is appreciated. Thanks!

npmappears to require readable-stream. Do you have areadable-streamfolder in your npm folder? (probably located atC:\Program Files\nodejs\node_modules\npm\node_modules, or a path similar)npminstalled? Possibly globally? You can typewhere npmfrom the command line to figure out if you have any additional installs / references in your path. I can see that its referencing%appdata%\npmin one of the errors, which I believe is where global installs go.npmin Intellij IDEA. But I still don't know why this issue happened. :(are-we-there-yetmodule inside of a globalnpminstall also needed a reference toreadable-stream, so it's possible that that reference was missing. Hard to say. I'd be tempted to wipe out any install ofnpmin%appdata%, if there's still one there.