-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Closed
Closed
Copy link
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiongood first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.hacktoberfesthelp wantedAsking for outside help and/or contributions to this particular issue or PR.Asking for outside help and/or contributions to this particular issue or PR.
Description
🐛 Bug Report
When running the command npm run serve -- --port 3000
, the system reports Something is already running on port 3000
. The same behavior is exhibited for any port, both in local and CI environments. When running just npm run serve
it boots up on port 3000 with no issues.
I have tested and confirmed this issue exists on a vanilla Docusaurus 2 installation.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
npx @docusaurus/init@next init docusaurus-repro classic
cd docusaurus-repro
npm run build
npm run serve -- --port 3000
(or any port)
Expected behavior
npm run serve -- --port 3000
should boot the app on port 3000.
Actual Behavior
npm run serve -- --port 3000
gives the notice Something is already running on port 3000
. When selecting no
to run on another port, the app boots into http://localhost:null
.
Your Environment
- Docusaurus version used: 2.0.0-alpha.64
- Environment name and version: Node LTS (12.18.4)
- Operating system and version: MacOS 10.15.6
- CI environment: node:lts docker image
Reproducible Demo
https://github.com/arinthros/docusaurus-repro
See To Reproduce
Simek
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiongood first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.hacktoberfesthelp wantedAsking for outside help and/or contributions to this particular issue or PR.Asking for outside help and/or contributions to this particular issue or PR.
Activity
slorber commentedon Oct 1, 2020
thanks, looks like a good first issue for hacktoberfest :)
fix(v2): fixes facebook#3505, exit start if user don't want to change…
UmairKamran commentedon Oct 2, 2020
Hi, @slorber. First timer here. May I take this issue for hacktoberfest?
slorber commentedon Oct 2, 2020
Hi @UmairKamran and welcome.
Yes please give it a try and also read comments on #3514 :)
UmairKamran commentedon Oct 3, 2020
Hey @slorber and @arinthros, I've opened the PR #3531 to fix this issue. Hope you get the chance to review it soon. :)