VUE executes npm run dev and reports an error: missing script: dev

1. Execute npm run dev to report an error

insert image description here

2. Reason: the file of package.json is "serve": "vue-cli-service serve"

insert image description here

3. Solution: Execute the command and replace it with:npm run serve

insert image description here

Guess you like

Origin blog.csdn.net/daxiangaifashi/article/details/121137995