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

sgv2png failing to work after macOS High Sierra upgrade #105

Open
simonbm opened this issue Nov 3, 2017 · 2 comments
Open

sgv2png failing to work after macOS High Sierra upgrade #105

simonbm opened this issue Nov 3, 2017 · 2 comments

Comments

@simonbm
Copy link

simonbm commented Nov 3, 2017

sgv2png failing to work after macOS High Sierra upgrade

Node JS v8.9.0
NPM 5.5.1

/usr/local/lib/node_modules/svg2png/lib/svg2png.js:58
const stdout = result.stdout.toString();
^
TypeError: Cannot read property 'toString' of null
at processResult (/usr/local/lib/node_modules/svg2png/lib/svg2png.js:58:34)
at Function.module.exports.sync (/usr/local/lib/node_modules/svg2png/lib/svg2png.js:25:12)
at Object. (/usr/local/lib/node_modules/svg2png/bin/svg2png-cli.js:35:24)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)

@Tom32i
Copy link

Tom32i commented Nov 23, 2017

Same here with node v8.1.4 on High Sierra 10.13.1.
Seems to be a problem with the sync method?

@mathieugerard
Copy link

I solved the problem by deleting all node_module and doing a fresh npm install. I expect phantomJS to build slightly differently on High Sierra. So there should be nothing to change on svg2png. Hope this helps.

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