hey, I try to offline install, it work! Here is the step, I download the offline install file bypass registry .npmmirror.com/binary.html?path=playwright/builds/driver/. And then tell antigravity ide agent to install. Below is its summarize tutorial.
How to Fix playwright-go Driver 404 Error (Manual Recovery Guide)
The Problem
When Antigravity (or any app using playwright-go) tries to initialize browser automation, it may fail with a CDN download error:
failed to create browser context: failed to run playwright manager: failed to install playwright: could not install driver: error: got non 200 status code: 404 (404 Not Found) from https://playwright.azureedge.net/builds/driver/playwright-1.57.0-mac-arm64.zip
This happens because playwright-go checks its local driver cache, finds it empty, and attempts to fetch the driver bundle from an Azure CDN URL that is returning 404 Not Found (or is blocked by network policies).
The Solution: Offline Driver Installation
You can manually restore the driver by extracting the driver archive into playwright-go’s local cache directory.
Step 1: Obtain the Driver Archive
Download the matching driver zip for your version and architecture (e.g., playwright-1.57.0-mac-arm64.zip for macOS Apple Silicon) from a mirror, another working machine, or GitHub releases.
Step 2: Locate or Create the Cache Directory
By default, playwright-go looks for the driver in:
- macOS:
~/Library/Caches/ms-playwright-go/<version>/
- Linux:
~/.cache/ms-playwright-go/<version>/
- Windows:
%USERPROFILE%\AppData\Local\ms-playwright-go\<version>\
For version 1.57.0 on macOS, create the folder if it doesn’t exist:
mkdir -p ~/Library/Caches/ms-playwright-go/1.57.0
Step 3: Extract the Driver into the Cache
Extract the contents of the zip file directly into the version directory:
unzip -q -o /path/to/playwright-1.57.0-mac-arm64.zip -d ~/Library/Caches/ms-playwright-go/1.57.0
After unzipping, your cache directory structure should look like this:
~/Library/Caches/ms-playwright-go/1.57.0/
├── LICENSE
├── node <-- Executable Node.js binary
└── package/ <-- Playwright CLI & libraries (contains package/cli.js)
Step 4: Grant Execution Permissions
Ensure the bundled Node binary has execute permissions:
chmod +x ~/Library/Caches/ms-playwright-go/1.57.0/node
Step 5: Install Browser Kernel (Optional / If Needed)
If the Chromium browser kernel is also missing from ~/Library/Caches/ms-playwright/, install it using the restored local Playwright CLI:
~/Library/Caches/ms-playwright-go/1.57.0/node ~/Library/Caches/ms-playwright-go/1.57.0/package/cli.js install chromium
Step 6: Verify
Relaunch your browser task in Antigravity. The engine will detect the valid driver files inside ~/Library/Caches/ms-playwright-go/1.57.0/, bypass the CDN download entirely, and launch the browser successfully.