I can run it on my Win7 system using command:
node_modules/.bin/testcafe nightmare specs/test.js
But on CentOS, there is no responding, always waiting.. I used the same command as Win7.
Please help me, is there any wrong?
Hello @jackyxiao126! Which version of CentOS do you use? Are you using any Graphical Desktop Environment or working in the command line? If the latter one is your case, you can try to setup Xvfb as described at http://ithubinfo.blogspot.ru/2013/11/how-to-install-and-configure-xvfb-in.html.
Thank you @AndreyBelym, I can run it with "xvfb-run" using firefox, but still error on nightmare..
Here is the log:+ DEBUG=nightmare+ xvfb-run '--server-args=-screen 0 1024x768x24' node_modules/.bin/testcafe nightmare specs/ppccSanityTest.jsMon, 28 Aug 2017 09:43:38 GMT nightmare queuing process startMon, 28 Aug 2017 09:43:39 GMT nightmare queueing action "goto" for http://10.9.76.137:43628/browser/connect/Sk7CBwZtWMon, 28 Aug 2017 09:43:39 GMT nightmare runningMon, 28 Aug 2017 09:43:39 GMT nightmare electron child process exited with code 127: command not found - you may not have electron installed correctlyMon, 28 Aug 2017 09:47:22 GMT nightmare electron child process not started yet, skipping kill.Build was abortedAborted by anonymousFinished: ABORTED
Can you change the DEBUG variable to nightmare:*,electron:* please and post results here? Also, this thread may be helpful for you.
Thanks for your suggestion, libxss was installed, I am debugging it..
Here is the logs:
Looks like glibc Standard C Library is very outdated in CentOS. You can compile the newer version as a workaround: http://endorkins.com/2017/04/26/running-nightmarejs-on-centos-6/