epicweb-dev / full-stack-foundations

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

Unable to Setup #49

Closed stormikph closed 9 months ago

stormikph commented 10 months 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 10 months ago

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

ng-hai commented 10 months 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 10 months 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 10 months ago

Agree.

kentcdodds commented 9 months 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.