Playwright Install Dependencies fails

My site name is: preneurguide
My build log is: Netlify

My project is an Astro site that uses remark-mermaidjs, which relies on Playwright.

postinstall does pnpx playwright install --with-deps chromium and that fails when building on Netlify:

11:30:51 PM: > pnpx playwright install --with-deps chromium
11:30:52 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
11:30:54 PM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1
11:30:52 PM: Packages: +2
11:30:52 PM: ++
11:30:52 PM: Progress: resolved 3, reused 2, downloaded 0, added 2, done
11:30:53 PM: Installing dependencies…
11:30:53 PM: Switching to root user to install dependencies…
11:30:54 PM: Password: su: Authentication failure
11:30:54 PM: Failed to install browsers
11:30:54 PM: Error: Installation process exited with code: 1
11:30:54 PM: ELIFECYCLE Command failed with exit code 1. (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
11:30:54 PM: Error during pnpm install
11:30:54 PM: Failing build: Failed to install dependencies

Note that local builds and GitHub Action builds are fine. There is something with Netlify that is preventing the Chromium installation.

Note that the Playwright CI Documentation does not (yet) list Netlify, but my strategy is consistent with other CI solutions.

How can I get around this?

Well, it looks like i resolved it by replacing the postinstall with:
pnpx playwright-core install chromium