npm WARN cli npm v9.6.4 does not support Node.js v15.14.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/cli–plugin–eslint@4.5.18
npm ERR! Found: eslint@7.15.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@”7.15.0″ from the root project
npm ERR! peer eslint@”>= 5.0.0″ from @vue/eslint–config–prettier@5.1.0
npm ERR! node_modules/@vue/eslint–config-prettier
npm ERR! dev @vue/eslint–config-prettier@”^5.0.0″ from the root project
npm ERR! 8 more (babel–eslint, eslint–config-airbnb–base, …)
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.18
npm ERR! node_modules/@vue/cli–plugin–eslint
npm ERR! dev @vue/cli–plugin–eslint@”4.5.18″ from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint@6.8.0
npm ERR! node_modules/eslint
npm ERR! peer eslint@”>= 1.6.0 < 7.0.0″ from @vue/cli-plugin-eslint@4.5.18
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR! dev @vue/cli-plugin-eslint@”4.5.18″ 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
无法下载项目依赖,经过百度了解发现是我的npm版本高无法解析依赖树导致依赖下载失败,可执行命令:npm install —legacy-peer–deps,绕过dependency里依赖的进行自动安装,最终问题解决,项目成功运行。
原文地址:https://blog.csdn.net/llupengt/article/details/130479878
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_19181.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!