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] Error: Unsupported platform: freebsd #5084

Closed
OctoD opened this issue Jan 21, 2021 · 5 comments
Closed

[BUG] Error: Unsupported platform: freebsd #5084

OctoD opened this issue Jan 21, 2021 · 5 comments

Comments

@OctoD
Copy link

OctoD commented Jan 21, 2021

Context:

  • Playwright Version: 1.8.0
  • Operating System: freebsd
  • Node.js version: 12.18.4

Describe the bug

It does not even install:

Error: Unsupported platform: freebsd

node_modules/playwright/lib/utils/browserPaths.js:133:11
@yury-s
Copy link
Member

yury-s commented Jan 21, 2021

We don't build browsers for FreeBSD today. We haven't seen enough interest in this platform so far.

@OctoD
Copy link
Author

OctoD commented Jan 21, 2021

Ok nevermind, just skipped the browsers installation configuring a .npmrc file. Doing this resolves the issue. Thank you

@OctoD OctoD closed this as completed Jan 21, 2021
@jsjoeio
Copy link

jsjoeio commented Apr 6, 2021

@OctoD do you mind posting your solution? (Haven't used .npmrc before and running into a similar issue.

@OctoD
Copy link
Author

OctoD commented Apr 7, 2021

@jsjoeio

I added these two lines to a global .npmrc to skip browsers install:

playwright_skip_browser_download=1
playwright_browsers_path=/nonexistent

I am using freebsd packages for the browsers, hope it will help.

@jsjoeio
Copy link

jsjoeio commented Apr 7, 2021

Awesome! Thanks so much! 🙏

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

No branches or pull requests

3 participants