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

deno serve should support --port 0 #23845

Closed
satyarohith opened this issue May 16, 2024 · 0 comments · Fixed by #23846
Closed

deno serve should support --port 0 #23845

satyarohith opened this issue May 16, 2024 · 0 comments · Fixed by #23846
Assignees
Labels
bug Something isn't working

Comments

@satyarohith
Copy link
Member

satyarohith commented May 16, 2024

It's current supported in JS API (Deno.listen) and it picks a random port automatically.

➜  ~ deno serve --port 0 a.js
error: invalid value '0' for '--port <port>': number would be zero for non-zero type

For more information, try '--help'.


Caused by:
    number would be zero for non-zero type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant