Error: Could not find Chromium (rev. 1056772) #686
Replies: 3 comments 5 replies
-
Not much info to go on there… just pasting an error message on its own (especially without even bothering to format it!) isn’t enough for anyone to help you. However, I get the same error message when I try to run Browsershot on my server (Windows 2019), so I’m in the same boat as you. Your error message seems to indicate that the cache path given is not the expected one; the same is true for me. I have Node and NPM installed at the latest versions, and Puppeteer itself (version 19.2.2) installs with no issues. Browsershot is required in Composer and is called correctly. According to the configuration page, the default location of the Chromium browser that is downloaded and installed with Puppeteer since version 19.0.0 is But I get roughly the same error message as you:
My cache path is given here as As defined in the Puppeteer configuration docs, I’ve tried adding a I’ve also tried calling Browsershot with a custom Chromium executable path, copy-pasting various permutations of the absolute and relative paths to the executable or its containing folder. All to no effect. Puppeteer still cannot find Chromium. |
Beta Was this translation helpful? Give feedback.
-
Based on this previous discussion, I installed Puppeteer 17.1.3 instead, and it immediately found Chromium.. |
Beta Was this translation helpful? Give feedback.
-
If you are using Heroku @moxesh-gandhi, I had the same issue and solved it by downgrading:
|
Beta Was this translation helpful? Give feedback.
-
The command "PATH=$PATH:/usr/local/bin NODE_PATH=$USER:$ (id -gn $USER) /var/www/.config │ └──────────────────────────────────────────────────────┘ Error: Could not find Chromium (rev. 1056772). This can occur if either 1. you did not perform an installation before running the script (e.g.
npm root -g
node '/var/www/html/browsershot/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"https://google.com","action":"screenshot","options":{"type":"png","path":"storage/googlescreenshot.jpg","args":[],"viewport":{"width":3840,"height":2160},"landscape":true,"waitUntil":"networkidle0"}}'" failed. Exit Code: 1(General error) Working directory: /var/www/html/browsershot/public Output: ================ Error Output: ================ ┌──────────────────────────────────────────────────────┐ │ npm update check failed │ │ Try running with sudo or get access │ │ to the local update config store via │ │ sudo chown -Rnpm install
) or 2. your cache path is incorrectly configured (which is: /var/www/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at ChromeLauncher.resolveExecutablePath (/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:120:27) at ChromeLauncher.executablePath (/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:166:25) at ChromeLauncher.launch (/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:70:37) at async callChrome (/var/www/html/browsershot/vendor/spatie/browsershot/bin/browser.js:69:23)Beta Was this translation helpful? Give feedback.
All reactions