前端报错:UnhandledPromiseRejectionWarning: Error: ENOTEMPTY: directory not empty
2024-02-22 17:47:16
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)