PhantomJS: error while loading shared libraries


#1

I’m getting the following error when with phantomjs. I’m hosted in Modulus and am not sure if this is a Modulus problem or a Meteor problem. It works fine on my local box. Does anyone know if there’s a way to install libfreetype through Meteor/npm to resolve this or is this a Modulus issue?

phantom stderr: /mnt/app/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

/mnt/app/node_modules/nightmare/lib/index.js:284

throw err;
^
Error: the phantomjs process ended unexpectedly
at Nightmare.handleCrash (/mnt/app/node_modules/nightmare/lib/index.js:281:15)
at ChildProcess. (/mnt/app/node_modules/phantom/phantom.js:150:28)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)