Open mo opened 2 years ago
First I'd try messing with PUPPETEER_DOWNLOAD_PATH
(setting it explicitly or via npm config set puppeteer_download_path
) https://github.com/puppeteer/puppeteer/pull/6014
But there might be something here related to child_process spawning .. see https://github.com/nodejs/snap/issues/13#issuecomment-928850443 .. maybe you can use that to work around the problems here?
Basically we're in a constrained environment with Snaps such that certain novel behaviours become problematic. I wish it weren't so but sometimes you're better off just installing Node.js directly and bypassing the containment environment of Snaps.
If I install node using
sudo snap install node --classic --channel=16
and then runnpm install puppeteer
then I get this error:...however, if I uninstall the snap version and install via .deb package, then everything works. I.e. it works when I install via: