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

Error: Failed to launch the browser process #201

Open
koslambrou opened this issue Jan 16, 2024 · 3 comments
Open

Error: Failed to launch the browser process #201

koslambrou opened this issue Jan 16, 2024 · 3 comments

Comments

@koslambrou
Copy link

I use NixOS. As relaxed is not packaged in nixpkgs, I attempted to install it using npx with:

npx --package=relaxedjs

That part works. However, when I tried running relaxed document.pug, I got the following error:

Launching ReLaXed...
/home/xxx/.npm/_npx/fe93568e581428cd/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241
            reject(new Error([
                   ^

Error: Failed to launch the browser process! spawn /home/xxx/.npm/_npx/fe93568e581428cd/node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome ENOENT


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/home/xxx/.npm/_npx/fe93568e581428cd/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20)
    at ChildProcess.<anonymous> (/home/xxx/.npm/_npx/fe93568e581428cd/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:233:85)
    at ChildProcess.emit (node:events:517:28)
    at ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.18.2
@Flakebi
Copy link
Contributor

Flakebi commented Jan 25, 2024

You can set PUPPETEER_EXECUTABLE_PATH to chromium to make it work.
I didn’t run it recently but this package worked some time ago: Flakebi/nixpkgs@8449629

@koslambrou
Copy link
Author

Awesome, your Nix config works. Any plans for adding it to nixpkgs?

@Flakebi
Copy link
Contributor

Flakebi commented Jan 29, 2024

Nice :)
I have on plans to add it myself (not using it much anymore and want to try out typst next). But feel free to take my commit and add it yourself if you want.

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

2 participants