Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Ubuntu 22.04 with 2.3.0 + nodejs v12.22.9 #49

Open
khurshid-alam opened this issue Dec 20, 2023 · 0 comments
Open

Doesn't work on Ubuntu 22.04 with 2.3.0 + nodejs v12.22.9 #49

khurshid-alam opened this issue Dec 20, 2023 · 0 comments

Comments

@khurshid-alam
Copy link

khurshid-alam commented Dec 20, 2023

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.

image

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 ?

@khurshid-alam khurshid-alam changed the title Doesn't work on Ubuntu 22.04 with 2.4.3 Doesn't work on Ubuntu 22.04 with 2.4.3 + nodejs v12.22.9 Dec 20, 2023
@khurshid-alam khurshid-alam changed the title Doesn't work on Ubuntu 22.04 with 2.4.3 + nodejs v12.22.9 Doesn't work on Ubuntu 22.04 with 2.3.0 + nodejs v12.22.9 Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant