Error: Cannot find module 'npmlog'

cannot find module 'npmlog' - after updated npm

Thanks for the answers. It was a bug and it has already been fixed in Node v5.4.1. Now it's working as usual.

sudo rm -rf /usr/local/bin/npm
sudo apt-get install node
sudo mv /usr/bin/npm /usr/local/bin/npm
原文地址:https://www.cnblogs.com/ViokingJava/p/12578523.html