Using gulpfile D:\Project\managefe\gulpfile.js
[14:12:08] Starting ‘clean’…
[14:12:09] ‘clean’ errored after 111 ms
[14:12:09] Error: EPERM: operation not permitted, unlink ‘D:\Project\managefe\dist’
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bs-fast-vue@1.2.2 build: gulp
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bs-fast-vue@1.2.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\zybs0\AppData\Roaming\npm-cache_logs\2020-12-09T06_12_09_465Z-debug.log
我是使用gulp打的包,打包的时候总是会报这个错误,然后在网上找了一下,让删除一下node_modules,然后删除packages-lock.json,重新npm install,果然,重新下了依赖是好了,但是下次我打包的时候,又报了这个错误,然后我问了一下另一个前端大佬,他告诉我说是因为xftp左边实是在本地打包的dist目录下,在执行npm run dev时,会自动删除前一个dist文件夹,而xftp还在dist目录下,他会报错