screen-capture-phantonjs Make sure you have node installed on your machine. Then follow the following steps: Run the following command: npm i This simple project has only one dependency of PhantomJS To generate the screen shot, run the following command: phantomjs ./src/simple-capture.js