Error “Cannot find module ‘npmlog'” after “npm update -g”

I have faced the same issue in my Windows 10 PC. After looking into solutions, since i couldn’t find the exact solution for the issue i was facing Cannot find module ‘npmlog’ I just uninstalled the node js and then, deleted both ‘npm’ and ‘npm-cache’ in “C:\Users\YourPCName\AppData\Roaming”

Then, i downloaded the latest version of node from Node JS Website

And, installed node js

After that i checked with the path in environment variables.

Finally run the command prompt ‘run as administrator’ and npm install npm -g

Checking your version will show the latest version. ‘npm -v’

I got the latest version – v3.10.9

Try this. this should work.

Leave a Comment