Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cannot find module 'npmlog' - after updated npm #20323
I'm opening this issue because:
What's going wrong?
After I run "npm install -g npm" for any command using "npm" I get back
Error: Cannot find module 'npmlog'
I'm using Linux Fedora 27
How can the CLI team reproduce the problem?
I think I did a workaround:
First I uninstall Node.js (I'm using Fedora 27, I just used
Install NVM - http://nvm.sh
After these steps I got
Installed @angular/cli again and it seems everything is fine.
I did a similar workaround as @enriquerene when I encountered the same problem on my Win 10 PC.
I just did 'npm i -g npm' when prompted by npm that an update is available (5.6.0 -> 6.0.0). Afterwards, all npm commands return the same message as reported above.
I had the same problem as you @metamezzo, but your workaround needed a little tweak.
I don't know why folder '
So my steps were:
Now I get the
I've encountered a similar issue. My use-case included docker, so steps to reproduce (without adding too much additional configuration) are:
NPM before updating was:
NPM after updating is:
EDIT: Seems my specific issue is partially solved here: #16807 (comment)