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

[Bug]: Cannot install Playwright with yarn following instructions #34805

Closed
rbirkgit opened this issue Feb 14, 2025 · 2 comments · Fixed by microsoft/create-playwright#140
Closed
Assignees
Labels

Comments

@rbirkgit
Copy link

Version

latest

Steps to reproduce

I went here: https://playwright.dev/docs/intro#installing-playwright

Followed instructions to install with yarn, i.e. using yarn create playwright

Expected behavior

To be able to install with yarn.

Actual behavior

It is failing to install with this error:

Installing Playwright Test (yarn add --dev -W @playwright/test)…
Unknown Syntax Error: Unsupported option name ("-W").

Additional context

No response

Environment

Using yarn 4.4.1
@ltsuda
Copy link
Contributor

ltsuda commented Feb 14, 2025

It looks like you are using workspaces

https://github.com/microsoft/create-playwright/blob/main/src/packageManager.ts#L84

I can't find where yarn 4.4.1 comes from, at least in their website/github. But in the latest documentation the -W doesn't exist.

https://yarnpkg.com/cli/add

@Skn0tt
Copy link
Member

Skn0tt commented Feb 17, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants