在使用npm过程中,肯定会遇到清缓存的情况,网上的帖子抄来抄去的,还都是无效的,真的是一言难尽。废话不多说,直接上代码!
fy@YFdeMacBook-Pro pc_vue % npm cache clear --force
npm WARN using --force Recommended protections disabled.
fy@YFdeMacBook-Pro pc_vue % npm cache verify
Cache verified and compressed (~/.npm/_cacache)
Content verified: 0 (0 bytes)
Index entries: 0
Finished in 0.004s
清除成功!!
网上的方法一般都是npm cache clear --force,然而并没有什么卵用。。。。