npm run serve in Vue-cli reports npm ERR! Missing script: “serve”

insert image description here
This error occurs because the running command of vue-cli2 is npm run dev;
and the running command of vue-cli3 is npm run serve.
This error is reported because of the version problem of vue-cli.

Guess you like

Origin blog.csdn.net/m0_46893049/article/details/125906001