Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: nicer message to install dependencies #7715

Merged

Conversation

aslushnikov
Copy link
Collaborator

If we know how to install all dependencies, then we should recommend
a Playwright CLI one-liner to install dependencies.

image

References #7682

If we know how to install all dependencies, then we should recommend
a Playwright CLI one-liner to install dependencies.

References microsoft#7682
`Host system is missing a few dependencies to run browsers.`,
`Please install them with the following command:`,
``,
` sudo npx playwright install-deps`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

show sudo conditional?

const needsSudo = process.platform !== 'win32 && process.getuid() !== 0

src/utils/dependencies.ts Show resolved Hide resolved
@aslushnikov aslushnikov merged commit b2c5bfb into microsoft:master Jul 19, 2021
@aslushnikov aslushnikov deleted the nicer-dependency-installation-message branch July 19, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants