pageres error

195 views
Skip to first unread message

Mark Fitch

unread,
Jan 2, 2021, 4:23:23 PM1/2/21
to pretext...@googlegroups.com
The error below occurs when I try to use pageres (directly or through
pretext). The correct version of Chrome is installed. Setting
PUPPETEER_PRODUCT=firefox and PUPPETEER_EXECUTABLE_PATH to the chrome
version installed by puppeteer (818858) does not remove the error. This
is on Ubuntu. Any idea how to make this work?

mafitch@bombadil:~$ pageres http://google.com <http://google.com>
Error: Could not find browser revision 818858. Run
"PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox
yarn install" to download a supported Firefox browser binary.
    at ChromeLauncher.launch
(/usr/local/lib/node_modules/pageres-cli/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:79:23)

Dr. Mark A. Fitch
Chair, Department of Mathematics & Statistics

maf...@alaska.edu
907-786-1656
SSB 154
University of Alaska Anchorage
3211 Providence Drive, Anchorage, AK 99508

Rob Beezer

unread,
Jan 3, 2021, 12:22:20 PM1/3/21
to pretext...@googlegroups.com
Dear Mark,

I can't really tell, but do you think:

> Run "PUPPETEER_PRODUCT=firefox npm install"

means to set the environment variable, and *then* install/reinstall? Maybe
that's what you tried.

npm is a bit of a mystery to me, but I find deleting everything and starting
over is often more productive than trying to update.

I was testing with a new install of pageres just a few weeks ago, on Ubuntu with
newer Firefox and Chrome installed. No problems. So no good guesses from me.

Rob

Mark Fitch

unread,
Jan 4, 2021, 4:12:53 PM1/4/21
to pretext...@googlegroups.com
pageres is now running (at least for simple tasks) on that machine. I am
still testing use with various settings. I cannot be certain which set
of steps resulted in success. The following were the last steps used.

Remove all traces of pageres and puppeteeer (basically anything
installed by npm) by uninstalling and removing directories.

Set environment variable PUPPETEER_PRODUCT=firefox

Run "npm install pageres-cli"

Create simlink pageres pointing to cli.js in appropriate directories.
Reply all
Reply to author
Forward
0 new messages