报错如下:
D:\srp-web-view\srp-web-view\node_modules\_filemanager-webpack-plugin@2.0.5@filemanager-webpack-plugin\lib\index.js:271
if (isGlob) archive.glob(command.source, globOptions);else if (sStats.isFile()) archive.file(command.source, { name: path$1.basename(command.source) });else if (sStats.isDirectory()) archive.glob('**/*', {
^
TypeError: Cannot read property 'isFile' of undefined
at D:\srp-web-view\srp-web-view\node_modules\_filemanager-webpack-plugin@2.0.5@filemanager-webpack-plugin\lib\index.js:271:79
at callback (D:\srp-web-view\srp-web-view\node_modules\_graceful-fs@4.2.10@graceful-fs\polyfills.js:306:20)
at FSReqCallback.oncomplete (fs.js:192:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-element-admin@4.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-element-admin@4.1.0 serve 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\huawei\AppData\Roaming\npm-cache\_logs\2022-08-25T05_37_07_365Z-debug.log
解决方案:在package.json中的"filemanager-webpack-plugin": "^2.0.5",给删除,在重新安装依赖包cnpm i,在启动项目,这样就可以跑通了。