I also have difficulty installing Chromium with Playwright.
23:48 ~ $ playwright install
Downloading Chromium 131.0.6778.33 (playwright build v1148) from https://playwright.azureedge.net/builds/chromium/1148/chromium-linux.zip
161.3 MiB [====================] 100% 0.0s
Chromium 131.0.6778.33 (playwright build v1148) downloaded to /home/HamzaHichou3/.cache/ms-playwright/chromium-1148
Downloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://playwright.azureedge.net/builds/chromium/1148/chromium-headless-shell-linux.zip
100.9 MiB [====================] 100% 0.0s
[Error: Unknown system error -122: Unknown system error -122, close] {
errno: -122,
code: 'Unknown system error -122',
syscall: 'close'
}
(node:61) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use node --trace-deprecation ...
to show where the warning was created)
Failed to install browsers
Error: Failed to download Chromium Headless Shell 131.0.6778.33 (playwright build v1148), caused by
Error: ENOTEMPTY: directory not empty, rmdir '/home/HamzaHichou3/.cache/ms-playwright/chromium_headless_shell-1148/chrome-linux'