Context:
- System: OS: android
- Memory: 79.39 MB / 3.57 GB
- Binaries:
- Node: 14.15.4 - /data/data/com.termux/files/usr/bin/node
- Yarn: 1.22.10 - ~/dev/code-server/node_modules/.bin/yarn
- npm: 6.14.10 - /data/data/com.termux/files/usr/bin/npm
- Languages:
- Bash: 5.1.4 - /data/data/com.termux/files/usr/bin/bash
- Playwright: 1.8.0
Reproduction
- Install Termux on Android phone
- Install node/yarn and other stuff:
apt update && apt upgrade
apt install build-essential python git nodejs yarn
- Run
yarn install in a project using playwright i.e. code-server
Describe the bug
error /data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright
Output:
/data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright/lib/utils/browserPaths.js:133
throw new Error('Unsupported platform: ' + process.platform);
^
Error: Unsupported platform: android
at cacheDirectory (/data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright/lib/utils/browserPaths.js:133:11)
at /data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright/lib/utils/browserPaths.js:139:36
at Object.<anonymous> (/data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright/lib/utils/browserPaths.js:140:3)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/data/data/com.termux/files/home/dev/code-server/test/node_modules/playwright/lib/install/installer.js:25:22)
Context:
Reproduction
apt update && apt upgrade apt install build-essential python git nodejs yarnyarn installin a project usingplaywrighti.e. code-serverDescribe the bug