ERROR in [copy-webpack-plugin] unable to locate ‘F:\xxx‘ Build failed with errors

在运行npm run build的时候出现了下面这种问题

ERROR in [copy-webpack-plugin] unable to locate 'F:\毕业设计\项目\前端\Warning-Vue\static' at 'F:\毕业设计\项目\前端\Warning-Vue\static'

  Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! warningvue@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the warningvue@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\dell\AppData\Roaming\npm-cache\_logs\2022-03-30T13_38_43_930Z-debug.log

截图如下:
在这里插入图片描述
原因是我把static文件夹不小心放在了src文件夹下了,导致在build的时候找不到static,把static拿出来就好了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_44114147/article/details/123858144