问答

Error: Invalid dest() folder argument

作者:admin 2021-07-05 我要评论

执行 npm run dev:watch的时候报这个错,怎么解决? (node:17372) UnhandledPromiseRejectionWarning: Error: Invalid dest() folder argument. Please specify ...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

执行 npm run dev:watch的时候报这个错,怎么解决?

(node:17372) UnhandledPromiseRejectionWarning: Error: Invalid dest() folder argument. Please specify a non-empty string or a function.
    at Gulp.dest (C:\Users\72074530\Desktop\runhealth\node_modules\_vinyl-fs@3.0.3@vinyl-fs\lib\dest\index.js:21:11)
    at html (C:\Users\72074530\Desktop\runhealth\gulpfile.dev.js:45:11)
    at FSWatcher.<anonymous> (C:\Users\72074530\Desktop\runhealth\gulpfile.dev.js:137:13)
    at FSWatcher.emit (events.js:315:20)
    at FSWatcher.EventEmitter.emit (domain.js:547:15)
    at FSWatcher.<anonymous> (C:\Users\72074530\Desktop\runhealth\node_modules\_chokidar@2.1.8@chokidar\index.js:200:38)
    at FSWatcher._emit (C:\Users\72074530\Desktop\runhealth\node_modules\_chokidar@2.1.8@chokidar\index.js:241:5)
    at FSWatcher.<anonymous> (C:\Users\72074530\Desktop\runhealth\node_modules\_chokidar@2.1.8@chokidar\lib\nodefs-handler.js:274:18)
    at FSReqCallback.oncomplete (fs.js:176:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:17372) 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 handled with
.catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:17372) [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.
[10:14:45] Starting '<anonymous>'...
[10:14:45] Finished '<anonymous>' after 2.49 ms
###

这不是写了报错信息吗?

Invalid dest() folder argument

应该是 gulp 构建的代码中 dest函数传参异常。gulp.dest(/ 这里有问题 /)

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • PHP的use 的 前提是包中的文件需要提前

    PHP的use 的 前提是包中的文件需要提前

  • 为什么分布式项目中需要分布式锁,而普

    为什么分布式项目中需要分布式锁,而普

  • mysql高效查询评论及回复内容,并且分

    mysql高效查询评论及回复内容,并且分

  • tp5 数据库查询  如何进行多对多查询

    tp5 数据库查询 如何进行多对多查询

腾讯云代理商
海外云服务器