我有一个大问题。如果我想运行命令gulp build
,则会出现以下错误:
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js`enter code here`:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at requireDir (/Users/rabbit/.bitnami/stackman/machines/xampp/volumes/root/htdocs/default/tools/node_modules/require-dir/index.js:128:33)
at Object.<anonymous> (/Users/rabbit/.bitnami/stackman/machines/xampp/volumes/root/htdocs/default/tools/gulpfile.js:5:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
其他人也遇到了这个问题吗?
我已经尝试删除node_modules文件夹并重新安装yarn。但是问题是一样的。build.js