\ Building for production... ERROR Error: EPERM: operation not permitted, lstat 'D:\developmentSoftware\...\dist'
Error: EPERM: operation not permitted, lstat 'D:\developmentSoftware\...\dist'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lectricvehicle@0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lectricvehicle@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
看一下是否有xftp等文件传输软件占用dist文件夹的。
我这是上次使用xftp发布vue的dist文件后,没关xftp窗口,造成的dist文件夹占用,进而导致cnpm run build 报错,关掉xftp窗口就好了。
本文详细解析了在使用Vue项目进行构建时遇到的EPERM权限错误,并提供了有效的解决方案。通过检查文件传输软件如xftp是否占用了dist文件夹,可以避免构建过程中出现的权限问题。
6901

被折叠的 条评论
为什么被折叠?



