epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.
https://epicweb.dev/workshops/full-stack-foundations
Other
599 stars 157 forks source link

Unable to Setup #49

Closed stormikph closed 1 year ago

stormikph commented 1 year ago

When I try to start up and I'm received this error npm run setup

Screenshot 2023-10-24 at 7 49 35 PM

npm i

Screenshot 2023-10-24 at 7 54 09 PM

npm start

Screenshot 2023-10-24 at 7 55 02 PM

git version: 2.26.2 node version: 18.18.2 npm version: 9.8.1

kentcdodds commented 1 year ago

Looks like something is wrong with your system because that error says your version of node is 15

ng-hai commented 1 year ago

Hi @kentcdodds, I'm running into this issue as well. The error happens because of nvm, NVM detects that the repo does not contain any .nvmrc , so it reverts to the default version

image

Here are my approaches to fix this issue:

  1. Add .nvmrc to the repo containing the required Node version
  2. Let the users fix themself (I do this)
image
kentcdodds commented 1 year ago

I don't plan on adding an .nvmrc file. There are multiple ways people manage their node version and I'm not interested in adding a config file for every one of them.

I recommend you uninstall node v16 in your node version manager as that is no longer a maintained version of node.

ng-hai commented 1 year ago

Agree.

zoranstankovic commented 1 year ago

When I tried to run npm run setup I got this error: playwritgh_error I am using Linux Mint, and I found that there is an issue with Playwright here: https://github.com/microsoft/playwright/issues/6554 Also, there is no possibility of running this workshop if you don't use one of those systems:

System requirements from https://playwright.dev/docs/intro

    Node.js 16+
    Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).
    MacOS 12 Monterey or MacOS 13 Ventura.
    Debian 11, Debian 12, Ubuntu 20.04 or Ubuntu 22.04, with x86-64 or arm64 architecture.

I also tried before on Arch Linux and had another issue with the Playwright part. Is there any workaround for this problem? Thank you in advance.

kentcdodds commented 1 year ago

Sadly playwright does not support your version of linux. You'll have to disable the playwright setup by running setup with SKIP_PLAYWRIGHT:

SKIP_PLAYWRIGHT=true npm run setup

You'll want to do the same for all the workshops. Unfortunately this won't work for the testing workshop because playwright is an important part of those exercises, but you could run the workshops in GitHub Codespaces which can run the non-UI mode of Playwright.

Hopefully playwright will support linux mint in the future.