npm报错没有权限

在npm install经常会报错没有权限

这个时候需要清除一下缓存

npm cache clean --force
原文地址:https://www.cnblogs.com/anxiaoyu/p/8688131.html