鍍金池/ 問答/HTML5  Linux  HTML/ npm run build報錯operation not permitted,如

npm run build報錯operation not permitted,如何解決?

在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是沒有問題的,應(yīng)該如何解決?

回答
編輯回答
無標題

unlink 'C:UserswangyuchiPicturesxufadiststaticimg20180508134210.5d873f5.jpg'
檢查下,應(yīng)該和這張圖片有關(guān)系??词鞘欠褚肼窂藉e誤神馬的

2018年8月3日 11:36