vue serve not working, and not outputting anything
See original GitHub issueVersion
2.9.3
Reproduction link
Steps to reproduce
Please forgive the invalid “Link to minimal reproduction”. I do not understand why this is required for a CLI issue? It isn’t code related.
I installed @vue/cli-service-global
and trying to use “vue serve” returns nothing. No error, no output, just zip.
What is expected?
That it would start up a development server.
What is actually happening?
Nothing.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Not working "serve" command for Vue js project - Stack Overflow
Try deleting the node_modules folder and after that run npm i from the cmd. Then try running npm run serve again and see...
Read more >Server-Side Rendering (SSR) - Vue.js
Synchronous being the key word there. If your app starts with a loading spinner, then fetches content via Ajax, the crawler will not...
Read more >Modes and Environment Variables - Vue CLI
When running vue-cli-service , environment variables are loaded from all corresponding files. If they don't contain a NODE_ENV variable, ...
Read more >CLI Service - Vue CLI
You can access the binary directly as vue-cli-service in npm scripts, or as . ... Copying to clipboard might not work on a...
Read more >Migrate from v4 - Vue CLI
Note that the migrator is not complete yet and doesn't cover all cases. ... Starting with v5.0.0-beta.0, running vue-cli-service build will ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, I just realized you are running 2.9.3? Well,
vue serve
is a command of vue-cli 3.0. Where did you learn about this command if not in the 3.0 docs?Additionally, even if you were running 3.0, you would still have to provide a file to serve:
See: https://github.com/vuejs/vue-cli/blob/dev/docs/cli.md#vue-serve
Theoretically, yes. But I think we won’t improve 2.* anymore in such ways, only fix major bugs.
Got the same problem and changed from vue-cli to @vue/cli as lucio-lu suggested. Problem solved. You can use your vue file directly, ie,
vue serve mycomponent.vue
…