Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message in gulpfile.js on Windows #13

Closed
j3soon opened this issue Jan 29, 2018 · 3 comments
Closed

Error message in gulpfile.js on Windows #13

j3soon opened this issue Jan 29, 2018 · 3 comments

Comments

@j3soon
Copy link

j3soon commented Jan 29, 2018

If someone has encountered the error below when executing gulp on Windows.

C:\path\to\photography>gulp
[22:25:59] Using gulpfile C:\path\to\photography\gulpfile.js
[22:25:59] Starting 'resize'...

events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: Error: write EOF
    at finish (C:\path\to\photography\node_modules\gulp-gm\index.js:40:21)
    at gm.<anonymous> (C:\path\to\photography\node_modules\async\lib\async.js:485:30)
    at emitMany (events.js:147:13)
    at gm.emit (events.js:224:7)
    at gm.<anonymous> (C:\path\to\photography\node_modules\gm\lib\getters.js:70:16)
    at Socket.cb (C:\path\to\photography\node_modules\gm\lib\command.js:322:16)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at onwriteError (_stream_writable.js:408:12)

Download Graphicsmagick, and change line 14, 19 in gulpfile.js to

imageMagick: false

Then gulp can run without error.

C:\path\to\photography>gulp
[23:16:32] Using gulpfile C:\path\to\photography\gulpfile.js
[23:16:32] Starting 'resize'...
[23:16:32] Finished 'resize' after 26 ms
[23:16:32] Starting 'del'...
[23:16:32] Finished 'del' after 2.39 ms
[23:16:32] Starting 'default'...
[23:16:32] Finished 'default' after 22 μs
@j3soon
Copy link
Author

j3soon commented Jan 29, 2018

I put the solution here, so if anyone encounters the same problem as I had, they can fix it quickly.

@rampatra rampatra closed this as completed Feb 8, 2018
@somshot
Copy link

somshot commented Oct 1, 2018

I did this but still can't get the gulp work. It is just not picking up new images.

@somshot
Copy link

somshot commented Oct 1, 2018

All set now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants