We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
docusaurus start
1 parent 76518fd commit 68aa3c8Copy full SHA for 68aa3c8
packages/docusaurus/src/commands/utils/openBrowser/openBrowser.ts
@@ -70,7 +70,14 @@ async function tryOpenWithAppleScript({
70
const command = `ps cax -o command | grep -E "^(${supportedChromiumBrowsers.join(
71
'|',
72
)})$"`;
73
- const result = await execPromise(command);
+
74
+ const result = await execPromise(command).catch(() => {
75
+ // Ignore grep errors when macOS user has no Chromium-based browser
76
+ // See https://github.com/facebook/docusaurus/issues/11204
77
+ });
78
+ if (!result) {
79
+ return [];
80
+ }
81
82
const activeBrowsers = result.stdout.toString().trim().split('\n');
83
0 commit comments