Glup命令行相关报错
gulp : 无法加载文件 C:\Node\gulp-demo\gulpfile.js,因为在此系统上禁止运行脚本
解决方法如下
https://blog.csdn.net/gusushantang/article/details/109389338
再次执行又有新问题
[16:07:39] ‘first’ errored after 33 ms
[16:07:39] Error: File not found with singular glob: C:/Node/gulp-demo/.src/css/base.css (if this was purposeful, use allowEmpty
option)
at Glob. (C:\Node\node_modules\glob-stream\readable.js:84:17)
at Object.onceWrapper (events.js:422:26)
at Glob.emit (events.js:315:20)
at Glob.EventEmitter.emit (domain.js:467:12)
at Glob._finish (C:\Node\node_modules\glob\glob.js:197:8)
at done (C:\Node\node_modules\glob\glob.js:182:14)
at Glob._processSimple2 (C:\Node\node_modules\glob\glob.js:688:12)
at C:\Node\node_modules\glob\glob.js:676:10
at Glob.stat2 (C:\Node\node_modules\glob\glob.js:772:12)
at lstatcb (C:\Node\node_modules\glob\glob.js:764:12)
添加{allowEmpty: true}
新问题
[16:30:04]The following tasks did not complete: first
[16:30:04] Did you forget to signal async completion?
任务是同步的,需要使用 done 回调。
问题解决