diff --git a/scripts/postinstall.js b/scripts/postinstall.js index d7eecaf0f..a06519ef8 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -44,10 +44,12 @@ try { } // Install Playwright chromium for browser tools (non-fatal) -const args = os.platform() === 'linux' ? '--with-deps' : '' try { - execSync(`npx playwright install chromium ${args}`, { stdio: 'inherit' }) + execSync('npx playwright install chromium', { stdio: 'inherit' }) process.stderr.write(`\n ${green}✓${reset} Browser tools ready\n\n`) } catch { - process.stderr.write(`\n ${yellow}⚠${reset} Browser tools unavailable — run ${cyan}npx playwright install chromium${reset} to enable\n\n`) + const hint = os.platform() === 'linux' + ? `${cyan}npx playwright install --with-deps chromium${reset}` + : `${cyan}npx playwright install chromium${reset}` + process.stderr.write(`\n ${yellow}⚠${reset} Browser tools unavailable — run ${hint} to enable\n\n`) }