sindresorhus / capture-website

Capture screenshots of websites
MIT License
1.92k stars 136 forks source link

Error: Could not find expected browser (chrome) locally on version 1.4.0 CJS #103

Closed KK-Designs closed 2 years ago

KK-Designs commented 2 years ago

On version 1.4.0, when I run the buffer function, it gives the following error:

Error: Could not find the expected browser (chrome) locally. Run npm install to download the correct Chromium revision (982053).

I've searched everywhere on the internet, and I can't upgrade to the latest version. Can anyone please help? Thank you.

timnlupo commented 2 years ago

i'm having the same issue

sindresorhus commented 2 years ago

If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).

sindresorhus commented 2 years ago

Closing as 1.4.0 is not supported anymore.