I got the same issue installing the npm package https://www.npmjs.com/package/webshot
NOTE: it was a known issue for that package as it depends on graceful-fs behind the scenes.
FIX:1. upgrade graceful-fs to 4.x or higher
fix:2. use webshot-node instead https://www.npmjs.com/package/webshot-node