npm时报错解决EPERM: operation not permitted, lstat

1. 问题的提出

npm run build:prod --report时报错解决EPERM: operation not permitted, lstat

简单来说,前端打包应用的时候,出现资源占用的问题。
npm时报错解决EPERM: operation not permitted, lstat

2. 问题的解决

这个dist是我上传到服务器的文件,所有在上传文件的时候会出现资源占用问题。

关闭XFTP即可解决资源占用问题。

最后,问题得到解决。
npm时报错解决EPERM: operation not permitted, lstat