在vue项目中,打包运行npm run build报错,代码如下
Error: EPERM: operation not permitted, unlink 'C:UserswangyuchiPicturesxufadiststaticimg20180508134210.5d873f5.jpg'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xufast@1.0.0 build: node build/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xufast@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:UserswangyuchiAppDataRoamingnpm-cache_logs2018-05-15T01_53_53_769Z-debug.log
但是npm run dev是没有问题的,应该如何解决?
unlink 'C:UserswangyuchiPicturesxufadiststaticimg20180508134210.5d873f5.jpg'
检查下,应该和这张图片有关系。看是是否引入路径错误神马的