问题确认了,你这个项目应该是beta3之前的windows版创建出来的,当时的 gulpfile.js 脚本还没有考虑mac版的问题,导致之前的 gulpfile.js 脚本无法在mac上运行。
你可以使用beta3以后的版本创建新的 gulpfile.js 脚本并替换,或者将第4、5行替换为以下内容:
let ideModuleDir = useIDENode ? process.argv[1].replace("gulp\\bin\\gulp.js", "").replace("gulp/bin/gulp.js", "") : "";
let workSpaceDir = useIDENode ? process.argv[2].replace("--gulpfile=", "").replace("\\.laya\\gulpfile.js", "").replace("/.laya/gulpfile.js", "") : "./../";