If you would like to use this on travis or with a framebuffer like xvfb than you need to set the environment variable
NODESCREENSHOT_SHOW to 1. (export NODESCREENSHOT_SHOW).
See this .travis.yml for more information