segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.55k stars 1.08k forks source link

Nightmare no work. Error electron? #1013

Closed StanleyMilligan closed 7 years ago

StanleyMilligan commented 7 years ago

OS Centos node version 4.0.0-pre nightmarejs latest version

# DEBUG=nightmare:*,electron:* node --harmony example.js **electron:stderr /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64/node_modules/nightmare/node_modules/electron/dist/electron: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory +0ms**

How do I fix this error?

rosshinkley commented 7 years ago

It looks like you're missing libxss? It looks like Atom also had this problem, do any of the solutions there work?

LM1LC3N7 commented 7 years ago

@StanleyMilligan you need to use Xvfb, as explained on: