Skip to content
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

"Failed to launch the browser process!" (Update: figured it out) #30

Open
joshualore-home opened this issue Feb 10, 2023 · 2 comments
Open

Comments

@joshualore-home
Copy link

Everything else has gone fine up to the point where I run node server.js (.env file has been properly set up and everything). Am I missing something that is causing this error?

...Documents\GitHub\chatgpt-chrome-extension\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:299
reject(new Error([
^

Error: Failed to launch the browser process! spawn C:\Program Files\Google\Chrome\Application\chrome.exe ENOENT

@joshualore-home
Copy link
Author

And to further explain the issue, I am seeing the "Ask ChatGPT" option when I right click in text boxes, but this is the pop-up error I get when I click it:

"Error. Make sure you're running the server by following the instructions on https://github.com/gragland/chatgpt-chrome-extension. Also make sure you don't have an adblocker preventing requests to localhost:3000"

So it's clear that for some reason, I'm not being able to get the server running

@joshualore-home joshualore-home changed the title Failed to launch the browser process! "Failed to launch the browser process!" (Update: figured it out) Feb 11, 2023
@joshualore-home
Copy link
Author

joshualore-home commented Feb 11, 2023

I finally figured out the problem!

When you run server.js, it attempts to open Chrome using the address C:\Program Files\Google\Chrome\Application\chrome.exe, when the proper address (on my PC at least) should be C:\Program Files (x86)\Google\Chrome\Application\chrome.exe.

There are two ways to resolve this, but rather than finding the file that contains the line of code you need to change to direct it to the right Program Files folder, the simplest is simply to copy the Google folder from Program Files (x86) and paste it in Program Files. Once I did this, everything worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant