出现yarn启动项目失败

$ yarn run serve
yarn run v1.22.19
$ vue-cli-service serve
'vue-cli-service' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

大概率是在依赖的卸载过程中删除了重要的某些关联依赖导致的

解决方案是删除所有依赖,重新下载一遍

posted @ 2022-09-21 10:59  SultanST  阅读(183)  评论(0编辑  收藏  举报