当前位置:   article > 正文

前端报错:UnhandledPromiseRejectionWarning: Error: ENOTEMPTY: directory not empty_an unhandled rejection has occurred inside forge:

an unhandled rejection has occurred inside forge: error: enotempty: director

UnhandledPromiseRejectionWarning: Error: ENOTEMPTY: directory not empty

获取远程json文件中...
获取成功正在生成api文件
(node:98092) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
    at mainApi (D:\Dev_projects\yancao-ui\source\scripts\buildApi.js:168:59)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
(node:98092) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handl
ed with .catch(). (rejection id: 1)
(node:98092) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
获取成功正在生成api文件
(node:98092) UnhandledPromiseRejectionWarning: Error: ENOTEMPTY: directory not empty, rmdir 'D:\Dev_projects\yancao-ui\source\src\api\asset'
    at Object.rmdirSync (fs.js:735:3)
    at rmdirSync (D:\Dev_projects\yancao-ui\source\scripts\buildApi.js:217:8)
    at mainApi (D:\Dev_projects\yancao-ui\source\scripts\buildApi.js:183:5)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
(node:98092) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handl
ed with .catch(). (rejection id: 2)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/965058
推荐阅读
相关标签
  

闽ICP备14008679号