前端npm构建报错集

1.报错没法找到.npm/_cacache/content-v2/sha1/下相关文件

1.具体报错

用户在使用npm进行前端构建过程当中,发现以下报错前端

+ npm cache verify
npm ERR! code ENOENT
npm ERR! syscall stat
npm ERR! path /home/cis/.npm/_cacache/content-v2/sha1/3e/58/51f3685a2808b325f13d72a7a2feaa5e3354
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, stat '/home/cis/.npm/_cacache/content-v2/sha1/3e/58/51f3685a2808b325f13d72a7a2feaa5e3354'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

2.报错缘由

上面这个保存是由于npm本地依赖缓存缺失致使的npm

3.解决方法

让用户从新执行一次构建,从新生成一次依赖缓存缓存

相关文章
相关标签/搜索