0👍
✅
You have two options to resolve the issue.
1) Just use npm run serve
: your development server is configured to run on the serve
keyword by default.
2) Add a script to your script section for dev
like this:
"scripts": {
"dev": "npm run serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
Then npm dev
would run your server by proxy. I don’t know why you’d want to do this, but if you really prefer to use dev
as your start command, that’s how you’d do it.
Source:stackexchange.com