npm run serve 启动项目报错

img



```c

F:\BaiduNetdiskDownload\前后分离进销存系统\前端项目代码\vue\src>npm run serve

> vue-antd-jeecg@2.2.0 serve F:\BaiduNetdiskDownload\前后分离进销存系统\前端项目
代码\vue
> vue-cli-service serve

'vue-cli-service' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-antd-jeecg@2.2.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-antd-jeecg@2.2.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to in
stall?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\buzhidao\AppData\Roaming\npm-cache\_logs\2021-09-07T05_29_
07_404Z-debug.log

F:\BaiduNetdiskDownload\前后分离进销存系统\前端项目代码\vue\src>

```

需要在项目里运行。进入到 有node_modules的目录里运行cmd .并且需要看看package.json里的运行命令

先npm i

package.json发出来