Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docusaurus 3.8 require Chrome browser #11204

@nikolaymatrosov

Description

@nikolaymatrosov

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

I got the following error

[ERROR] Error: Command failed: ps cax -o command | grep -E "^(Google Chrome Canary|Google Chrome Dev|Google Chrome Beta|Google Chrome|Microsoft Edge|Brave Browser|Vivaldi|Chromium)$"

    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at ChildProcess.exithandler (node:child_process:414:12)
    at ChildProcess.emit (node:events:524:28)
    at maybeClose (node:internal/child_process:1101:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:524:28)
    at Pipe.<anonymous> (node:net:351:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'ps cax -o command | grep -E "^(Google Chrome Canary|Google Chrome Dev|Google Chrome Beta|Google Chrome|Microsoft Edge|Brave Browser|Vivaldi|Chromium)$"',
  stdout: '',
  stderr: ''
}

I don't have any of these browsers installed and I don't want to install any of them. I do have Safari on my Mac. Why don't you consider it as a suitable browser to open the Docusaurus?

Reproducible demo

No response

Steps to reproduce

Run npm run start on the computer where is only Safari or Firefox is installed.

Expected behavior

I can use my favorite browser.

Actual behavior

I got the error.

Your environment

  • Docusaurus version used: 3.8.0
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): Safari, Node 22.13
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): MacOs

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions