gulp-svg2png icon indicating copy to clipboard operation
gulp-svg2png copied to clipboard

Issue with new MacOs Sierra

Open ajshortt opened this issue 8 years ago • 12 comments

NPM: 3.10.3 Node: 6.5.0 gulp-svg2png: ^0.3.0

Getting the following error since upgrading to the latest OS

/Users/auser/Sites/site/wp-content/themes/atheme/node_modules/gulp-svg2png/index.js:59
        throw new gutil.PluginError(PLUGIN_NAME, message);
        ^
Error: Error while converting image.Error: Command failed: /Users/auser/Sites/site/wp-content/themes/atheme/node_modules/svg2png/node_modules/phantomjs/lib/phantom/bin/phantomjs /Users/auser/Sites/site/wp-content/themes/atheme/node_modules/svg2png/lib/converter.js /Users/auser/Sites/site/wp-content/themes/atheme/resource/img/sprites.svg /var/folders/0w/xkb5znzs53l36ym1v6w_3mkr0000gn/T/4f742ae2-edb7-4647-8531-85e323ee758d-sprites.png 1

    at error (/Users/auser/Sites/site/wp-content/themes/atheme/node_modules/gulp-svg2png/index.js:59:15)
    at converted (/Users/auser/Sites/site/wp-content/themes/atheme/node_modules/gulp-svg2png/index.js:160:24)
    at /Users/auser/Sites/site/wp-content/themes/atheme/node_modules/svg2png/lib/svg2png.js:18:13
    at ChildProcess.exithandler (child_process.js:213:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)

ajshortt avatar Sep 26 '16 13:09 ajshortt

Same. Getting the same error after upgrading to Sierra.

benwilkins avatar Sep 26 '16 14:09 benwilkins

Same error Node : 0.12.15 NPM : 2.15.1 svg2png : ^0.3.0

ValentinCreative avatar Sep 26 '16 15:09 ValentinCreative

Well I tried updating to the latest version of gulp-svg2png and resolved the issue but my deployment setup/server doesnt like the use of ES6 const which the latest version has

ajshortt avatar Sep 26 '16 15:09 ajshortt

I'm having the same issue with the ES6 syntax, @ajshortt. I believe it's because of this issue domenic/svg2png#58 where svg2png version 3.1.1 and up requires Node 6.x.

I think forcing svg2png to be at version 3.1.0 would correct this, but I'm unsure if the creator of this plugin would be open to forcing that specific version.

aaronbushnell avatar Sep 27 '16 15:09 aaronbushnell

D'oh! Sorry, I missed the fact that you are on Node 6.x, @ajshortt. The newest version of gulp-svg2png (2.0.2) works for me with Node 6.x.

aaronbushnell avatar Sep 27 '16 21:09 aaronbushnell

Was having exactly the same issues.

Node v6.x and svg2png v2.0.2 is working for me.

@aaronbushnell Thanks for pointing out the latest Node requirements, I totally missed that!

matthewmcclatchie avatar Oct 07 '16 14:10 matthewmcclatchie

You bet, @matthewmcclatchie!

aaronbushnell avatar Oct 07 '16 14:10 aaronbushnell

Same error as well Node : 4.6.1 NPM : 2.15. svg2png : 0.3.0

cjpillette avatar Oct 24 '16 23:10 cjpillette

Same error too. Upgraded to macOS Sierra with the latest version of svg2png v2.0.2 and it stopped working.

.../node_modules/svg2png/lib/svg2png.js:2 const path = require("path"); ^^^^^

anartfulscience avatar Nov 03 '16 15:11 anartfulscience

I'm having same issue - not sure how to go about solving this?

jenswaern avatar Nov 08 '16 11:11 jenswaern

+1

SarikaVanapalli avatar Sep 20 '17 16:09 SarikaVanapalli

I'm also seeing the same issue with v1.0.2 of gulp-svg2png. Using it on MacOS Sierra 10.12.6 (16G1036) with

node v4.8.0 npm v2.15.11 nvm v0.33.0


I can confirm that the newer version 2.x works fine, but sadly I cannot update the node version on some of our build environments.


/Users/{user}/workspace/vagrant-all/projects/{project}/node_modules/gulp-svg2png/index.js:49 throw new gutil.PluginError(PLUGIN_NAME, message); ^ Error: Error while converting image. Error: Command failed: /Users/{user}/workspace/vagrant-all/projects/{project}/node_modules/gulp-svg2png/node_modules/svg2png/node_modules/phantomjs/lib/phantom/bin/phantomjs /Users/{user}/workspace/vagrant-all/projects/{project}/node_modules/gulp-svg2png/node_modules/svg2png/lib/converter.js /Users/{user}/workspace/vagrant-all/projects/{project}/web/images/svg/sprite.svg /var/folders/zh/hrbwf4n12jz_djrqqkvhdfjw0000gn/T/59382cbe-151b-403f-90a3-b53e4744481b-sprite.png 1

mooddesign avatar Feb 01 '18 15:02 mooddesign