New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to launch the browser process! spawn chrome.exe ENOENT #5662
Comments
Same after update to puppeteer@3.0.0 @jackfranklin Platform: Github Actions, Ubuntu 18.04 What steps will reproduce the problem?
What happens instead?
|
Seems like a duplicate of #5656 |
Please unpublish this version, newbies on MacOS can’t install puppeteer now and have an issues in CI, it simply not work :D |
@munrocket this issue specifically talks about Windows issue, please open a new issue if you're getting errors on Mac. |
It’s not my issue, I am just sitting in puppeteer community. Here same problem in CI also #5704 |
On windows i noticed the zip file wasn't not unzipped correctly, which results in a chome-win directory with only the manifest file. |
For me this issue is solved. |
@pubmikeb What was the fix? |
@dance2die, I've just removed puppeteer 3.0.0 from the package.json, refreshed node modules installation, then readded puppeteer 3.0.4 to the package.json and installed. Everything is OK. |
we are hitting this now. Stackoverflow notes: |
I used to have problem for CI/CD of headful chrome extension testing and finally resolved with this package |
For me on Linux, the only way to resolve is by installing some dependencies: sudo apt-get update sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget sudo apt-get install -y libgbm-dev |
This worked for me as well, thx @tiagoboeing |
Facing the same issue after updating to 3.0.4 MAC Os version: 10.9.5 |
Getting this issue on MacOS with an M1 chip. |
@aiden-sobey on MacOS with M1 chip I solved (on Stencil, he uses Puppeteer) adding See this line I'm checking by OS and adding the executable path. Using only Puppeteer we've something like that: const browser = await puppeteer.launch({ executablePath: '/path/to/Chrome' }); Extracted from README on Default runtime section.
I dunno, that makes sense for your case? Can you try it? |
Thanks @tiagoboeing . Problem is I'm trying to use an NPM package that relies on puppeteer, so I can't alter the source code myself. My issue seems to be closely linked to #6622 , but it's all a bit strange as it all worked fine last week. |
@aiden-sobey maybe you can use as workaround a environment variable to specify From sourcespuppeteer/src/node/Launcher.ts Line 591 in 669f04a
puppeteer/src/node/Puppeteer.ts Line 165 in 98c8145
Can helpful
On mentioned issue you try this solution? #6622 (comment) |
Thanks very much for your help @tiagoboeing , but still unsuccessful. What I tried:
I'm curious if it's reading the puppeteer environment variable in properly, as it doesn't reference it in the error message... Will keep trying, and thanks again for your help. Note: Tried referencing chromium in my Applications and in the |
So how can I fix this in Windows? I've just installed this with
I see there is no "chrome.exe". The folder has only "90.0.4427.0.manifest" file. EDIT: |
Backstopjs is executing, but this error keeps occurring when running this command "backstop reference" COMMAND | Executing core for "reference" System: Mac M1 Any help is greatly appreciated! |
Thanks, this worked for me. |
I had the same issue as @aiden-sobey. I'm trying to use pageres-cli and I keep getting this error: Failed to launch the browser process! spawn /usr/bin/chromium-browser It does not matter what I set for PUPPETEER_EXECUTABLE_PATH in my ~/.zshrc file on my M1 Macbook, the error message never changes. So, I assumed that path must be hardcoded somewhere. Sure enough, through some grepping I found the culprit: If I change the path to what I'm showing below (from
|
@agileadam's has the final fix necessary to make m1 work -- if you've already installed the m1 chromium workaround via Brew. In order to get artpi/roam-research-private-api#15 working, I ended up patching the
Everything works as expected after that. Thanks for getting down to the nuts & bolts @agileadam! |
Upgrade puppeter to last version. Fixed the problem on macbook pro m1 chip |
I am so confused as to how I had this issue in 2022 and am here looking at this forum all bc i wanted to run a console logger on headless mode on a server. |
for me my solution is fuck the code.i deleted all and it works now. |
Worked for me as well |
For me on Linux, the only way to resolve is by installing some dependencies: sudo apt-get update sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget sudo apt-get install -y libgbm-dev Originally posted by @tiagoboeing in #5662 (comment) I guess some of these packages are not present in alpine based systems, is there something similar for alpine based systems? |
got after changing this |
I have the same problem
node 18.13.0, windows 10 SOLVED |
i was able to fix this issue, by adding the broswer url in Install Google Chrome in your WSL sandbox ( ref: https://scottspence.com/posts/use-chrome-in-ubuntu-wsl) |
this works for me locally: const client = new Client({ but how i can execute the browser inside my project folder? i want to deploy it and i can't. |
for me first create puppeteer.config.cjs in root dir
then
|
in root dir create " .puppeteerrc.cjs " `const {join} = require('path'); /**
"puppeteer": "^21.0.3", if its not working then install some packages `sudo apt-get update sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget sudo apt-get install -y libgbm-dev |
|
This still happened to me just now. Puppeteer is installed, and |
If u are running this puppeteer in local just install 21.0.3 version and const browser = await puppeteer.launch({ headless: true, args:['--no-sandbox'] }); |
I solved this issue for replace "" on to "/" in the executablePath. |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
"puppeteer": "^3.0.0"
.That's the only change I applied.
Puppeteer initialization:
What is the expected result?
A PDF should be generated.
What happens instead?
The text was updated successfully, but these errors were encountered: