Skip to content

dx playwright install does not work, but deno run does #31692

@nicolo-ribaudo

Description

@nicolo-ribaudo

Version: Deno 2.6.3

Inside of a folder with the following deno.json:

{
  "imports":{
    "playwright": "npm:playwright@^1.57.0"
  }
}
# does not work
➜ dx playwright install
Downloading Chromium 143.0.7499.4 (playwright build v1200) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1200/chromium-mac-arm64.zip
error: Could not find constraint 'run' in the list of packages.
Downloading Chromium 143.0.7499.4 (playwright build v1200) from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/chromium/1200/chromium-mac-arm64.zip
error: Could not find constraint 'run' in the list of packages.
Downloading Chromium 143.0.7499.4 (playwright build v1200) from https://cdn.playwright.dev/builds/chromium/1200/chromium-mac-arm64.zip
error: Could not find constraint 'run' in the list of packages.
Downloading Chromium 143.0.7499.4 (playwright build v1200) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1200/chromium-mac-arm64.zip
error: Could not find constraint 'run' in the list of packages.
Downloading Chromium 143.0.7499.4 (playwright build v1200) from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/chromium/1200/chromium-mac-arm64.zip
error: Could not find constraint 'run' in the list of packages.
Failed to install browsers
Error: Failed to download Chromium 143.0.7499.4 (playwright build v1200), caused by
Error: Download failure, code=1
    at ChildProcess.<anonymous> (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/playwright-core/1.57.0/lib/server/registry/browserFetcher.js:94:32)
    at ChildProcess.emit (ext:deno_node/_events.mjs:436:20)
    at ext:deno_node/internal/child_process.ts:281:16
    at eventLoopTick (ext:core/01_core.js:187:7)
# works
➜ deno run -A npm:playwright install
Downloading Chromium 143.0.7499.4 (playwright build v1200) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1200/chromium-mac-arm64.zip
159.6 MiB [==                  ] 9% 19.2s^C

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