解决Vue cnpm run build 报错: operation not permitted, lstat

\  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! [email protected] build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.js)