You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running mix playwright.install I get the following error:
00:01:40.922 [info] Installing playwright browsers and dependencies
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
00:01:41.135 [info] Installing dependencies...
Switching to root user to install dependencies...
Failed to install browsers
Error: Installation process exited with code: 1
** (RuntimeError) Failed to install playwright browsers
(playwright 1.44.0-alpha.3) lib/playwright/sdk/cli.ex:13: Playwright.SDK.CLI.install/0
(mix 1.17.2) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.17.2) lib/mix/cli.ex:96: Mix.CLI.run_task/2
/home/titan/.kiex/elixirs/elixir-1.17.2-/bin/mix:2: (file)
I'm running this on ubuntu terminal of window subsystem for linux 2 if that makes a difference. Any suggestions?
The text was updated successfully, but these errors were encountered:
Looking at the code it looks like mix playwright.install is making a direct call to Playwright's driver cli to take care of installing its dependencies (browsers and FFmpeg). Is it possible that NodeJS is not installed properly on your machine?
One possible way I can think of to diagnose the issue is to run npx playwright install. npx playwright install will download the PlayWright driver to your machine and then attempts to install its dependencies which is what the Mix task wants to do via a System.cmd/2. This should hopefully show better messages about the underlying issue.
When running
mix playwright.install
I get the following error:I'm running this on ubuntu terminal of window subsystem for linux 2 if that makes a difference. Any suggestions?
The text was updated successfully, but these errors were encountered: