Eric小屋

  • 为什么会出现这个报错呢?
  • 首页
  • 学习笔记
    • JAVA
    • Spring
    • Node.js
    • Vue
  • 学习文档
  • 案例项目
  • 课程笔记
  • 问题解决
登录

Vue运行 npm run serve 报错(初学者报错)

  • Eric
  • 2024-01-04
  • 0

今天遇到一个简单的小报错,记录下来,给小白看

首先我拷了一个别人给的项目,正准备运行突然报错


> day04@0.1.0 serve    
> vue-cli-service serve

'vue-cli-service' is not recognized as an internal or external command,
operable program or batch file.

下面那段意思是
“vue-cli-service”不被识别为内部或外部命令、可操作的程序或批处理文件。

为什么会出现这个报错呢?

这个问题是因为,项目的部分依赖丢失 也就是 node_modules 文件夹内缺少内容
我们需要去下载依赖 在终端使用 命令 npm i 或 yarn install 将我们需要的依赖下载成功
下载和再次运行 npm run serve 即可成功运行

联系作者:2572976830@qq.com
© 2025 Eric小屋
Theme by Wing
京ICP备2023032157号 京公网安备11011402053616号
  • {{ item.name }}
  • {{ item.name }}