-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Add --port argument to 'vue serve' command #4342
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
Conversation
Hey @bokub, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚 |
(cherry picked from commit 59d3e74)
The correct syntax is
Also, please don't spam with multiple messages, use the 'edit' button instead |
There is a difference between @vue/cli, and @vue/cli-service : https://cli.vuejs.org/guide/#components-of-the-system Can you try |
@bokub |
I tried to specify port 8080 but it does not work. It always use random port. I took many time to try all ways that i can, but not. Anybody help me to solve this problem. |
OK I think I get it. You're using the command
Conclusion: you're in the wrong thread, and maybe you should create a new issue
It is, according to this. Maybe this port is already used. Try --port 1234 or whatever other port |
This is not an issue but a Pull Request already merged! |
Apparently, someone has the same problem as you 😉 |
@bokub As i comment above, can you help me. Why isn't -- port 8080 working to me. |
@pravosleva : My feature has been added to the package You have issues on the #4452 is about |
@duongle-kdnd Can you give any details ? Maybe a new issue might be a good idea if you really think something is not working |
Thanks to webpack, this one line addition in
packages/@vue/cli/bin/vue.js
is sufficient and works perfectly ! 🎉