question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] `npx playwright install` does not finish install and exits with 0

See original GitHub issue

Edit from maintainers

You are affected when npx playwright install does not produce a

|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of XX.X Mb

line for each browser install and stops already before.


We recently see this in our CI (using playwright@1.24.2):

$ node test/unit/browser/index.js --sequential --build --browser chromium --browser webkit --tfs 'Browser Unit Tests'
browserType.launch: Executable doesn't exist at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     npx playwright install                                              ║
║                                                                         ║
║ <3 Playwright Team                                                      ║
╚═════════════════════════════════════════════════════════════════════════╝
    at runTestsInBrowser (/Users/runner/work/1/s/test/unit/browser/index.js:129:48)
    at /Users/runner/work/1/s/test/unit/browser/index.js:254:25 {
  name: 'Error'
}
error Command failed with exit code 1.

Is this known?

https://dev.azure.com/monacotools/Monaco/_build/results?buildId=185457&view=logs&j=a5d99aad-4929-5289-bf4a-26b78032353d&t=dafdf52c-6fc3-5431-f55d-37c3624b5ac3&l=13

//cc @pavelfeldman

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:27 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
Serhatbirdcommented, Oct 21, 2022

There is still a problem. you helped me****

1reaction
mxschmittcommented, Oct 4, 2022

We implemented like a workaround for this, it goes live in 1.27.

Please let us know if you still encounter it afterwards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] npx playwright install does not install appropriate ...
npx playwright install Does not appear to download necessary browsers if using an older playwright/test version. browserType.launch: Executable ...
Read more >
Installing playwright using npm gives error `command failed`
I did not try your updated answer, I was getting error while installing even after I deleted the node modules folder. But just...
Read more >
Let's Play Around With Playwright Framework | Nerd For Tech
Installation. Create an empty folder called “playwright_framework”. Then type the npm init -y to initialize the project. Then install the ...
Read more >
npm vs npx — What's the Difference? - freeCodeCamp
npm (node package manager) is the dependency/package manager you get out of the box when you install Node.js. It provides a way for ......
Read more >
E2E Testing with Playwright - JointJS
The basic setup is now complete, so we are ready to write our first test. ... we can run npx playwright test --project=chromium...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found