Dear Maintainer,
The new python3-playwright package does not work as expected. Running the
documented command to install browser binaries fails with a Node.js error:
node:internal/modules/cjs/loader:1386
throw err;
^
Error: Cannot find module '/usr/share/nodejs/playwright/cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1383:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
at Module._load (node:internal/modules/cjs/loader:1192:37)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.21.1
The path in the stack trace (/usr/share/nodejs/playwright/cli.js) does
not exist. Python Playwright is invoking the Node version of Playwright,
but the Debian package does not ship the corresponding Node module. As a
result, the primary command for fetching Playwright browsers cannot be
used.
Thanks for your work maintaining Playwright in Debian.