#201·ReLaXed

Error: Failed to launch the browser process

Author: koslambrouCreated Jan 16, 2024Updated Jan 29, 2024

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