Skip to content

[Bug]: playwright install hangs in node v26 #40724

Description

@seia-soto

Version

1.59.1

Steps to reproduce

  1. Install and activate node 25 or less
  2. Run npx playwright install
  3. Remove installed directory (.local-browsers dir)
  4. Install and activate node 26
  5. Run npx playwright install (hangs)
Details
aa@HoJeongs-MacBook-Pro test0 % nvm use 25
Now using node v25.8.2 (npm v11.11.1)
aa@HoJeongs-MacBook-Pro test0 % time PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install
╔═══════════════════════════════════════════════════════════════════════════════╗
║ WARNING: It looks like you are running 'npx playwright install' without first ║
║ installing your project's dependencies.                                       ║
║                                                                               ║
║ To avoid unexpected behavior, please install your dependencies first, and     ║
║ then run Playwright's install command:                                        ║
║                                                                               ║
║     npm install                                                               ║
║     npx playwright install                                                    ║
║                                                                               ║
║ If your project does not yet depend on Playwright, first install the          ║
║ applicable npm package (most commonly @playwright/test), and                  ║
║ then run Playwright's install command to download the browsers:               ║
║                                                                               ║
║     npm install @playwright/test                                              ║
║     npx playwright install                                                    ║
║                                                                               ║
╚═══════════════════════════════════════════════════════════════════════════════╝
Downloading Chrome for Testing 147.0.7727.15 (playwright chromium v1217) from https://cdn.playwright.dev/builds/cft/147.0.7727.15/mac-arm64/chrome-mac-arm64.zip
165.5 MiB [====================] 100% 0.0s
Chrome for Testing 147.0.7727.15 (playwright chromium v1217) downloaded to /Users/aa/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/.local-browsers/chromium-1217
Downloading Chrome Headless Shell 147.0.7727.15 (playwright chromium-headless-shell v1217) from https://cdn.playwright.dev/builds/cft/147.0.7727.15/mac-arm64/chrome-headless-shell-mac-arm64.zip
92 MiB [====================] 100% 0.0s
Chrome Headless Shell 147.0.7727.15 (playwright chromium-headless-shell v1217) downloaded to /Users/aa/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/.local-browsers/chromium_headless_shell-1217
Downloading Firefox 148.0.2 (playwright firefox v1511) from https://cdn.playwright.dev/dbazure/download/playwright/builds/firefox/1511/firefox-mac-arm64.zip
97.1 MiB [====================] 100% 0.0s
Firefox 148.0.2 (playwright firefox v1511) downloaded to /Users/aa/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/.local-browsers/firefox-1511
Downloading WebKit 26.4 (playwright webkit v2272) from https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2272/webkit-mac-15-arm64.zip
75.4 MiB [====================] 100% 0.0s
WebKit 26.4 (playwright webkit v2272) downloaded to /Users/aa/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/.local-browsers/webkit-2272
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-mac-arm64.zip
1 MiB [====================] 100% 0.0s
FFmpeg (playwright ffmpeg v1011) downloaded to /Users/aa/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/.local-browsers/ffmpeg-1011
PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install  9.58s user 5.42s system 53% cpu 27.876 total
aa@HoJeongs-MacBook-Pro test0 % nvm use 26
Now using node v26.1.0 (npm v11.13.0)
aa@HoJeongs-MacBook-Pro test0 % rm -rf ~/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/.local-browsers
aa@HoJeongs-MacBook-Pro test0 % time PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install
Need to install the following packages:
[email protected]
Ok to proceed? (y)
╔═══════════════════════════════════════════════════════════════════════════════╗
║ WARNING: It looks like you are running 'npx playwright install' without first ║
║ installing your project's dependencies.                                       ║
║                                                                               ║
║ To avoid unexpected behavior, please install your dependencies first, and     ║
║ then run Playwright's install command:                                        ║
║                                                                               ║
║     npm install                                                               ║
║     npx playwright install                                                    ║
║                                                                               ║
║ If your project does not yet depend on Playwright, first install the          ║
║ applicable npm package (most commonly @playwright/test), and                  ║
║ then run Playwright's install command to download the browsers:               ║
║                                                                               ║
║     npm install @playwright/test                                              ║
║     npx playwright install                                                    ║
║                                                                               ║
╚═══════════════════════════════════════════════════════════════════════════════╝
Downloading Chrome for Testing 147.0.7727.15 (playwright chromium v1217) from https://cdn.playwright.dev/builds/cft/147.0.7727.15/mac-arm64/chrome-mac-arm64.zip
165.5 MiB [====================] 100% 0.0s
^C
PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install  0.96s user 0.30s system 1% cpu 1:08.13 total

Expected behavior

Install the browsers after downloading it.

Actual behavior

It hangs when it tries to extract the archive.

Additional context

I featured a bug fix in "yauzl" library to address the issue: thejoshwolfe/yauzl#168

Environment

System:
    OS: macOS 26.4.1
    CPU: (8) arm64 Apple M1
    Memory: 84.20 MB / 16.00 GB
  Binaries:
    Node: 26.1.0 - /Users/aa/.nvm/versions/node/v26.1.0/bin/node
    Yarn: 4.13.0 - /Users/aa/.nvm/versions/node/v26.1.0/bin/yarn
    npm: 11.13.0 - /Users/aa/.nvm/versions/node/v26.1.0/bin/npm
    pnpm: 10.33.2 - /Users/aa/.nvm/versions/node/v26.1.0/bin/pnpm
    bun: 1.2.5 - /Users/aa/.bun/bin/bun
    Deno: 2.7.14 - /opt/homebrew/bin/deno
  IDEs:
    opencode: 1.14.41 - /Users/aa/Library/pnpm/opencode
  Languages:
    Bash: 5.3.9 - /opt/homebrew/bin/bash

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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