当前位置:网站首页>npm run serve starts error npm ERR Missing script "serve"
npm run serve starts error npm ERR Missing script "serve"
2022-07-30 06:33:00 【m0_67401382】
When starting the project, I found the following error with npm run serve
npm ERR! Missing script: "serve"npm ERR!npm ERR! To see a list of scripts, run:npm ERR! npm runnpm ERR! A complete log of this run can be found in:npm ERR! D:oderepspm_cache_logs?2-04-24T03_27_08_348Z-debug.logThe solution is this
First look at the first line of the error Missing script: "serve" means that there is no serve this startup script
Then I went to the package.json file to find it
No, there is the following dev

Then I tried to start the project with npm run dev and it worked!
By the way, you should also be curious about the difference between npm run serve and npm run dev.
Actually, npm run dev is used by vue-cli2.0, and npm run serve is used by vue-cli3.0
In essence, it is caused by different versions of vue-cli scaffolding
边栏推荐
猜你喜欢
随机推荐
P3 元宝第七单元笔记
CTF之misc-其他类型隐写
分支和循环语句
SSTI靶场
art-template模板引擎过滤器的使用【入门简单使用篇】
MySQL数据库之JDBC编程
人生的第一篇博客(初识代码)
用h1~h5标题时候,但是如果不要加粗的效果,处理方法如下
871.最低加油次数(动态规划)
【C语言】字符串的比较
div设置一个最小高度和最大高度,但是中间可以靠内容撑开
2022CISCNmisc
Application Practice | Application Practice of Apache Doris in Baidu Intelligent Cloud Billing System
BaseDAO的抽取
猜数字游戏
js 实现自定义签名
典型线程问题综合演示
目前主流浏览器以及对应的内核
umi后台项目导航自定义icon问题
事件高级:事件的绑定及取消、DOM事件流、事件委托








