epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.

Home Page:https://epicweb.dev/workshops/full-stack-foundations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Setup fail: OS is not officially supported by Playwright: Ubuntu as a fallback. Other os?

lpwprojects opened this issue · comments

Hi,
it's not mentioned in the Readme that you need a specific OS to use the workshop (unless I missed it), so I'm reporting my issue trying to setup the workshop in Fedora. Playwright is trying to fallback assuming Ubuntu, which obviously will not work:

[full-stack-foundations]$ npm run setup
> setup
> node ./setup.js

▶️  Starting workshop setup...
    ✅  Success: System Validation

    ▶️  Starting: Dependency Installation
    ✅  Success: Dependency Installation

    ▶️  Starting: Custom Setup
          Handling custom setup (if neccessary)
          Running the following command: npm run setup:custom --if-present

> setup:custom
> node ./scripts/setup-custom.js

🛝  setting up the first problem app...
🗑  deleting existing playground app
✅ first problem app set up
🎭 installing playwright for testing... This may require sudo (or admin) privileges and may ask for your password.
BEWARE: your OS is not officially supported by Playwright; installing dependencies for Ubuntu as a fallback.
Installing dependencies...
Switching to root user to install dependencies...
sh: line 1: apt-get: command not found
Failed to install browsers
Error: Installation process exited with code: 127
    🚨  Failure: Custom Setup. Please review the messages above for information on how to troubleshoot and resolve this issue.

You should be able to proceed without playwright for all workshops except the testing one. You can use GitHub codespaces if you'd like, though you won't get UI mode. Most of your experience shouldn't be negatively impacted though. Sorry for any trouble.