Skip to content

[BUG] npm init playwright fails #13533

Closed
Closed

Description

Hi! I am new here. Trying to get started with Playwright in one of my projects.

Context:

  • Playwright Version: 1.21.0
  • Operating System: Ubuntu 20.04.4 LTS running under WSL2, Windows 10 Pro, 21H2, 19044.1586
  • Node.js version: v16.13.1
  • Browser: All
  • Extra:

Code Snippet

npm init playwright

Describe the bug

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libegl-mesa0 : Depends: libgbm1 (= 21.2.6-0ubuntu0.1~20.04.1) but 21.2.6-0ubuntu0.1~20.04.2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Failed to install browsers
Error: Installation process exited with code: 100
Error: Command failed: npx playwright install --with-deps
    at checkExecSyncError (node:child_process:826:11)
    at execSync (node:child_process:900:15)
    at executeCommands (/home/einar/.npm/_npx/d40a10098bccdd29/node_modules/create-playwright/lib/index.js:4519:39)
    at Generator.run (/home/einar/.npm/_npx/d40a10098bccdd29/node_modules/create-playwright/lib/index.js:4593:5)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home/einar/.npm/_npx/d40a10098bccdd29/node_modules/create-playwright/lib/index.js:4770:3 {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 9825,
  stdout: null,
  stderr: null
}
npm ERR! code 1

Where to go from here? Am I doing something wrong? Is this a common error? If so, please add to docs / getting started...

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

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