Skip to content

Could not find Chrome #28

Description

@blegat

I'm trying to use PlutoPDF in github actions for https://github.com/blegat/LINMA2710
As you can see in the logs, I'm getting the error

[ Info: Running notebook...
[ Info: Generating pdf...
┌ Info: PlutoPDF: Running npm install in scratch space...
│   npm_version =
│    10.5.0
└    

up to date in 294ms
[ Info: PlutoPDF: Finished npm install.
file:///home/runner/.julia/scratchspaces/6eb38059-8c05-41f7-8871-5e7e2697ace6/build_dir4/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js:262
                    throw new Error(`Could not find Chrome (ver. ${this.puppeteer.browserVersion}). This can occur if either\n` +
                          ^

Error: Could not find Chrome (ver. 132.0.6834.110). This can occur if either
 1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
 2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
    at ChromeLauncher.resolveExecutablePath (file:///home/runner/.julia/scratchspaces/6eb38059-8c05-41f7-8871-5e7e2697ace6/build_dir4/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js:262:27)
    at ChromeLauncher.computeLaunchArguments (file:///home/runner/.julia/scratchspaces/6eb38059-8c05-41f7-8871-5e7e2697ace6/build_dir4/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:85:24)
    at async ChromeLauncher.launch (file:///home/runner/.julia/scratchspaces/6eb38059-8c05-41f7-8871-5e7e2697ace6/build_dir4/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js:48:28)
    at async pdf (file:///home/runner/.julia/scratchspaces/6eb38059-8c05-41f7-8871-5e7e2697ace6/build_dir4/export.js:14:21)
    at async file:///home/runner/.julia/scratchspaces/6eb38059-8c05-41f7-8871-5e7e2697ace6/build_dir4/bin.js:16:1

Node.js v20.12.2

The solution seems to be puppeteer/puppeteer#10388 (comment) but I haven't tested.
This is a follow-up from #18 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions