Skip to content

[BUG] Error: Unsupported platform: android #6105

Description

@jsjoeio

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

  1. Install Termux on Android phone
  2. Install node/yarn and other stuff:
apt update && apt upgrade
apt install build-essential python git nodejs yarn
  1. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions