寒光博客

idea vue启动项目报错:npm ERR! Missing script: "serve"解决
npm ERR! Missing script: "serve" npm ERR! npm ERR! To see...
扫描右侧二维码阅读全文
02
2021/07

idea vue启动项目报错:npm ERR! Missing script: "serve"解决

npm ERR! Missing script: "serve"
npm ERR!
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! E:\Program Files\nodejs\node_cache_logs\2021-07-02T01_32_00_049
Z-debug.log

解决方法:
检查环境变量设置没问题之后
查看配置文件package.json 中服务器名称,并修改启动命令。

 "scripts": {
    "serve": "vue-cli-service serve",
    "bulid": "vue-cli-service build"
  },
本文作者:Author:     文章标题: idea vue启动项目报错:npm ERR! Missing script: "serve"解决
本文地址:https://dxoca.cn/skill/393.html       百度已收录
版权说明:若无注明,本文皆为“Dxoca's blog (寒光博客)”原创,转载请保留文章出处。
Last modification:July 2nd, 2021 at 09:36 am
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment