【发布时间】:2022-01-07 02:41:13
【问题描述】:
我正在尝试运行我找到的这个示例。这是一个后端使用 .netcore,前端使用 Vuejs 的解决方案。
我想启动 Vuejs 应用程序,只需运行 npm run serve 得到这个错误:
PS C:\Users\xxx\Downloads\VueApp> npm run serve
> vue-argon-dashboard@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.
然后当我尝试运行npm i。
我得到以下输出:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue-argon-dashboard@0.1.0
npm ERR! Found: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^7.3.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.15
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR! dev @vue/cli-plugin-eslint@"^4.4.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
这是 package.json:
【问题讨论】:
标签: vue.js npm-start yarn-lock.json