Skip to content

Use next available port instead of hardcoded as default when using run command #68

Closed
@achou11

Description

@achou11

Running webxdc-dev run ... without using the --port flag results in the following error on my machine:

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

Looks like this comment didn't age too well 😅 :

So with `7000` we should be safe.

Instead of a hardcoded port as the default, I would suggest using a module like https://github.com/sindresorhus/get-port to get the next available port if the preferred one isn't available.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions