解决Vue cnpm run build 报错: operation not permitted, lstat
\Building for production... ERRORError: EPERM: operation not permitted, lstat 'D:\developmentSoftware\...\dist'Error: EPERM: operation not permitted, lstat 'D:\developmentSoftware\...\dist'npm ERR! co
·
\ 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窗口就好了。
更多推荐
已为社区贡献6条内容
所有评论(0)