运行项目时出现错误:

Error: Cannot find module ‘@vue/cli-shared-utils’
在这里插入图片描述
在这里插入图片描述

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! screen-vue-datav@1.0.1 serve: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the screen-vue-datav@1.0.1 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2020-08-30T02_07_10_068Z-debug.log

在项目文件下
npm cache clean --force  # 清理缓存
npm install # 或者 cnpm install  (install后面不加任何内容)
npm update # 或者 cnpm update (建议选择cnpm(国内镜像源))

# 再次运行项目
npm run serve
Logo

前往低代码交流专区

更多推荐