Reputation: 1456
[module.js:339 throw err;
Error: Cannot find module 'npmlog' on WINDOWS 8 Pro
I have tried to reinstall nodejs but still not working on windows.
module.js:339
throw err;
Error: Cannot find module 'npmlog' at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:18:11
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:75:3)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
Upvotes: 3
Views: 4968
Reputation: 320
I just experienced this problem on OS X Yosemite 10.10.5.
This is caused by backwards incompatibilities with Node versions.
You can fix this by deleting all old (incompatible) Node modules:
rm -rf /usr/local/bin/node_modules
rmdir %appdata%\npm\node_modules /s /q
Upvotes: 3