几个常见的“npm ERR! Error” 进入全屏

npm ERR! Error: ENOENT, lstat
解决办法:
npm config set user 0 npm config set unsafe-perm true
npm ERR! Error: No compatible version found
解决办法:升级node版本再来一次
npm install -g n n stable
npm ERR! Error: EACCES, mkdir
解决办法:权限问题,加个sudo再来一次
sudo npm install -g module_name