输入 npm run serve报了下面的错误
npm ERR! Missing script: "serve"
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\swl\AppData\Local\npm-cache\_logs\2021-09-18T02_08_27_339Z-debug.log
解决方法:
关闭终端
在vue创建完项目的文件夹内打开终端,运行 npm run serve
运行成功 !