Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

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

> [email protected] 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant