Doesn't work on Ubuntu 22.04 with 2.3.0 + nodejs v12.22.9
khurshid-alam opened this issue · 0 comments
khurshid-alam commented
Doesn't work on Ubuntu 22.04 with 2.3.0 + nodejs v12.22.9
capture-website --debug https://sindresorhus.com
Just opens a blank chrome window and does nothing. It says chrome is controlled by automated test software. And it keeps running until force closed. Without --debug it doesn't open browser window, just keeps running.
Sandboxing using
sudo sysctl -w kernel.unprivileged_userns_clone=1
doesn't work either.
However it does work with test.js
sudo npm install -g capture-website@2.3.0
sudo npm install -g capture-website-cli@2.3.0
cd /home/<user>/Documents/Project-A/ && npm link capture-website
nano test.js
import captureWebsite from 'capture-website';
captureWebsite.file('https://sindresorhus.com', 'screenshot.png');
node test.js
It does produce screenshot.png just fine. Only cli doesn't work
Iny idea why ?