edmcdonagh But I was surprised the path was to my home directory...
/usr/bin/sozi-to-pdf is linked to
../lib/node_modules/sozi-export/cli/sozi-to-pdf.js, which means
edmcdonagh I installed svgexport as suggested in the post you linked to
The link is about a similar issue that happened with svgexport.
Since the reporter claims to have solved the issue, I thought that his solution could work for sozi-export as well.
But you are not supposed to install svgexport.
In your case, the solution would have been to remove any other installation of phantomjs and reinstall sozi-export. But it seems that you have no other version of phantomjs installed.
The highest version I have tried is node.js 10.
I will try node.js 11 to see if I have the same error.
In the meantime, you can try to downgrade
nodejs. It will require to remove the current version:
sudo apt-get purge nodejs
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs