[Error: EPERM: operation not permitted, unlink 'D:\OperationSchedule\dist\static\css'] {
errno: -4048,
code: 'EPERM',
syscall: 'unlink',
path: 'D:\\OperationSchedule\\dist\\static\\css'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websinochemoil@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websinochemoil@1.0.0 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\shuyuli\AppData\Roaming\npm-cache\_logs\2020-05-18T08_23_23_807Z-debug.log
我这个错误是由dist文件夹被占用导致的,关闭占用程序即可
当然也可能由于种种版本更新的原因需要执行
npm install
重新安装一次,如果还是不可以的话,在把之前装的都清空
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install