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

failed to run frontend code on Mac #20

Closed
EsqerYasen opened this issue Nov 18, 2023 · 2 comments
Closed

failed to run frontend code on Mac #20

EsqerYasen opened this issue Nov 18, 2023 · 2 comments

Comments

@EsqerYasen
Copy link

EsqerYasen commented Nov 18, 2023

➜  frontend git:(main) ✗ node -v 
v18.18.2
➜  frontend git:(main) ✗ yarn -v 
1.22.19
➜  frontend git:(main) ✗ rm -rf node_modules 
➜  frontend git:(main) ✗ yarn 
yarn install v1.22.19
warning ../../../../package.json: No license field
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
[3/5] 🚚  Fetching packages...
warning vscode-languageclient@7.0.0: The engine "vscode" appears to be invalid.
[4/5] 🔗  Linking dependencies...
warning "react-hot-toast > goober@2.1.13" has unmet peer dependency "csstype@^3.0.10".
warning " > thememirror@2.0.1" has unmet peer dependency "@codemirror/language@^6.0.0".
warning " > thememirror@2.0.1" has unmet peer dependency "@codemirror/state@^6.0.0".
warning " > thememirror@2.0.1" has unmet peer dependency "@codemirror/view@^6.0.0".
[5/5] 🔨  Building fresh packages...
✨  Done in 1.66s.
➜  frontend git:(main) ✗ yarn dev 
yarn run v1.22.19
warning ../../../../package.json: No license field
$ vite
error when starting dev server:
Error: listen EADDRNOTAVAIL: address not available 198.18.0.217:5173
    at Server.setupListenHandle [as _listen2] (node:net:1800:21)
    at listenInCluster (node:net:1865:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:2014:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:110:8)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜  frontend git:(main) ✗ uname -a
Darwin macbook-pro 23.2.0 Darwin Kernel Version 23.2.0: Thu Nov  9 06:29:23 PST 2023; root:xnu-10002.60.71.505.1~3/RELEASE_ARM64_T6000 arm64

@EsqerYasen EsqerYasen changed the title failed to run frontend code failed to run frontend code on Mac Nov 18, 2023
@krishhh16
Copy link

you might already have some service running on that particular port, try switching the frontend code's port to something(maybe a higher value)

@abi
Copy link
Owner

abi commented Nov 18, 2023

Yeah that's exactly the issue @EsqerYasen See https://chat.openai.com/share/6270089b-1d8e-4751-ae3a-631b018c061d

Closing the issue for now.

@abi abi closed this as completed Nov 18, 2023
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