Closed indigofeather closed 9 years ago
It was happened in my project: https://github.com/IEMustDie/slush-laima
When I ran slush laima, I got errors.
slush laima
log:
[slush] Using slushfile /home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/slushfile.js [11:01:35] Starting 'laima:default'... [?] What is the name of your project? my-laima [?] What is the description? [?] What is the version of your project? 0.1.0 [?] What is the author name? [?] What is the author email? user@gmail.com [?] What is the github username? user [?] Continue? Yes [11:01:43] [conflict] Keeping [11:01:43] [conflict] Keeping README.md [11:01:43] [conflict] Keeping .gitignore [11:01:43] [conflict] Keeping .jshintrc [11:01:43] [conflict] Keeping bower.json [11:01:43] [conflict] Keeping coffeelint.json [11:01:43] [conflict] Keeping config.json [11:01:43] [conflict] Keeping config.json.dist [11:01:43] [conflict] Keeping gulpfile.coffee [11:01:43] [conflict] Keeping package.json [11:01:43] [conflict] Keeping server.js [11:01:43] [conflict] Keeping src [11:01:43] [conflict] Keeping test [11:01:43] [conflict] Keeping src/css [11:01:43] [conflict] Keeping src/font [11:01:43] [conflict] Keeping src/img [11:01:43] [conflict] Keeping src/index.jade [11:01:43] [conflict] Keeping src/js [11:01:43] [conflict] Keeping test/.gitkeep [11:01:43] [conflict] Keeping test/config.js [11:01:43] [conflict] Keeping test/index.html [11:01:43] [conflict] Keeping test/tests.js [11:01:43] [conflict] Keeping src/css/.gitkeep [11:01:43] [conflict] Keeping src/css/application.sass [11:01:43] [conflict] Keeping src/css/components [11:01:43] [conflict] Keeping src/css/foundation [11:01:43] [conflict] Keeping src/css/structures [11:01:43] [conflict] Keeping src/font/.gitkeep [11:01:43] [conflict] Keeping src/img/.gitkeep events.js:72 throw er; // Unhandled 'error' event ^ SyntaxError: Unexpected token ILLEGAL at Function (<anonymous>) at template (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/node_modules/lodash/dist/lodash.js:6305:22) at Transform._transform (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/index.js:19:31) at Transform._read (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10) at Transform._write (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12) at doWrite (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10) at writeOrBuffer (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5) at Transform.Writable.write (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp-template/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11) at write (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24) at flow (/home/user/.nvm/v0.10.33/lib/node_modules/slush-laima/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
I found if remove the images in https://github.com/IEMustDie/slush-laima/tree/master/templates/src/img, it works.
If I did something wrong, please tell me. Thanks a lot.
This issue is caused by gulp-template.
gulp-template
It was happened in my project: https://github.com/IEMustDie/slush-laima
When I ran
slush laima
, I got errors.log:
I found if remove the images in https://github.com/IEMustDie/slush-laima/tree/master/templates/src/img, it works.
If I did something wrong, please tell me. Thanks a lot.