question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue serve not working, and not outputting anything

See original GitHub issue

Version

2.9.3

Reproduction link

https://www.raymondcamden.com

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:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
LinusBorgcommented, Mar 16, 2018

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:

vue serve App.vue

See: https://github.com/vuejs/vue-cli/blob/dev/docs/cli.md#vue-serve

it just does nothing as well. I’m assuming that should be another bug report (or enhancement request)?

Theoretically, yes. But I think we won’t improve 2.* anymore in such ways, only fix major bugs.

1reaction
davlebcommented, Mar 21, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found