用户在使用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
上面这个保存是由于npm本地依赖缓存缺失致使的npm
让用户从新执行一次构建,从新生成一次依赖缓存缓存