NPM run dev 可以,但是 NPM run build 就提示如下,什么原因,怎么解决?
0

vux@2.7.5 build /home/test
node build/build.js && rimraf docs/demos/v2/ && mkdirp docs/demos/v2 && cp -r docs/demos/temp/* docs/demos/v2/

⠋ building for production...ShellJS: internal error
Error: ENOENT: no such file or directory, lstat '/home/test/docs/demos/temp/static/img/����(1)@2x.png'
at Object.fs.lstatSync (fs.js:961:11)
at rmdirSyncRecursive (/home/test/node_modules/_shelljs@0.7.8@shelljs/src/rm.js:28:23)
at rmdirSyncRecursive (/home/test/node_modules/_shelljs@0.7.8@shelljs/src/rm.js:31:7)
at handleDirectory (/home/test/node_modules/_shelljs@0.7.8@shelljs/src/rm.js:110:5)
at /home/test/node_modules/_shelljs@0.7.8@shelljs/src/rm.js:191:7
at Array.forEach ()
at Object._rm (/home/test/node_modules/_shelljs@0.7.8@shelljs/src/rm.js:172:9)
at Object.rm (/home/test/node_modules/_shelljs@0.7.8@shelljs/src/common.js:399:25)
at Object. (/home/test/build/build.js:18:7)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vux@2.7.5 build: node build/build.js && rimraf docs/demos/v2/ && mkdirp docs/demos/v2 && cp -r docs/demos/temp/* docs/demos/v2/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vux@2.7.5 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! /root/.npm/_logs/2018-12-25T14_51_38_836Z-debug.log

讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

  • 请注意单词拼写,以及中英文排版,参考此页
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`, 更多语法请见这里 Markdown 语法
  • 支持表情,使用方法请见 Emoji 自动补全来咯,可用的 Emoji 请见 :metal: :point_right: Emoji 列表 :star: :sparkles:
  • 上传图片, 支持拖拽和剪切板黏贴上传, 格式限制 - jpg, png, gif
  • 发布框支持本地存储功能,会在内容变更时保存,「提交」按钮点击时清空
  请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!