Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

Error: Invalid dest() folder argument

执行 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:Users72074530Desktop
unhealth
ode_modules\[email protected]@vinyl-fslibdestindex.js:21:11)
    at html (C:Users72074530Desktop
unhealthgulpfile.dev.js:45:11)
    at FSWatcher.<anonymous> (C:Users72074530Desktop
unhealthgulpfile.dev.js:137:13)
    at FSWatcher.emit (events.js:315:20)
    at FSWatcher.EventEmitter.emit (domain.js:547:15)
    at FSWatcher.<anonymous> (C:Users72074530Desktop
unhealth
ode_modules\[email protected]@chokidarindex.js:200:38)
    at FSWatcher._emit (C:Users72074530Desktop
unhealth
ode_modules\[email protected]@chokidarindex.js:241:5)
    at FSWatcher.<anonymous> (C:Users72074530Desktop
unhealth
ode_modules\[email protected]@chokidarlib
odefs-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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

这不是写了报错信息吗?

Invalid dest() folder argument

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...