playwright: [BUG] Playwright does not support chromium on mac11.2
Context:
- Playwright Version: 1.8.1
- Operating System: MacOS Big Sur 11.2.1 (20D74)
- Node.js version: 14.15.5
- Browser: All
- Extra: Using with Robot Framework
$ npx envinfo --preset playwright
npx: installed 1 in 1.229s
System:
OS: macOS 11.2.1
Memory: 1.12 GB / 16.00 GB
Binaries:
Node: 14.15.5 - /usr/local/bin/node
npm: 6.14.11 - /usr/local/bin/npm
Languages:
Bash: 3.2.57 - /bin/bash
Describe the bug
Error when trying to install Playwright in my machine:
$ python3 -m playwright install
(node:1716) UnhandledPromiseRejectionWarning: Error: ERROR: Playwright does not support chromium on mac11.2
at Object.assert (/snapshot/playwright-cli/node_modules/playwright/lib/utils/utils.js:58:15)
at revisionURL (/snapshot/playwright-cli/node_modules/playwright/lib/install/browserFetcher.js:143:13)
at Object.downloadBrowserWithProgressBar (/snapshot/playwright-cli/node_modules/playwright/lib/install/browserFetcher.js:168:17)
at async validateCache (/snapshot/playwright-cli/node_modules/playwright/lib/install/installer.js:103:9)
at async Object.installBrowsersWithProgressBar (/snapshot/playwright-cli/node_modules/playwright/lib/install/installer.js:60:5)
(node:1716) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1716) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 15 (1 by maintainers)
@aslushnikov It worked with playwright v1.9.0! Thank you very much!! BTW nice bird 😄
pip3 install playwright==1.8.0a1andnpm install playwright,then it worked. Playwright does not support chromium on mac11.2 ,which is sloved.python3 -m playwright codegen --target python -o new.py -b chromium: