参考 https://stackoverflow.com/questions/41896855/gulp-src-throws-first-argument-must-be-a-string-buffer-arraybuffer-array-or 错误 运行gulp命令报错 解决 参考stackoverflow,是index.html空白造成的。所以,出错后首先检查html文件是否为空。