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

Use port 8080 instead of port 5000 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bryik
Copy link

@bryik bryik commented May 15, 2022

This PR changes the port used by the express server from 5000 to 8080 to avoid "address already in use" error. The quickstart docs should be updated to reflect this, but I'm not sure where they are.

This is what I saw previously (MacOS v12.3.1):

➜  oso-nodejs-quickstart git:(main) npm start

> quickstart@0.0.0 start
> node server.js

node:events:504
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::5000

Apple recently decided to use port 5000 for 'new AirPlay functionality', so anyone who tries to run the quickstart on the latest version of MacOS will likely see this error.

Why change to port 8080 in particular? No reason, this is just the port Svelte changed to when addressing the same issue in their CLI.

As port 5000 is now used by AirPlay on MacOS.
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

Successfully merging this pull request may close these issues.

None yet

1 participant