I have problem to activate Puppeteer in my MacOS environment (M1 processor). I get the following error message:
/usr/local/lib/node_modules/pa11y-ci/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:194
reject(new Error([
^
Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
at onClose (/usr/local/lib/node_modules/pa11y-ci/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:194:20)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/pa11y-ci/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:186:85)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
My local setting is:
- Node.js -v v22.15.0
- NPM -v 9.5.1
- macos 15.5
- DDEV 1.24.6
- Docker version 28.1.1, build 4eba377
Can anyone tell me how I can clear the error message and then use Puppeteer? Many thanks for your help
I have reinstalled Chromium from the homebrew package manager and tried to make the path to Chromium known in the OS. I also tried to install Puppeteer within DDE and run it correctly.
I expected Puppeteer to be executable in the project or via `ddev ssh`.