首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >克隆Vue.js项目并运行

克隆Vue.js项目并运行
EN

Stack Overflow用户
提问于 2022-06-23 00:52:04
回答 1查看 715关注 0票数 1

我已经将一个项目从Git克隆到我的Mac上,它只有项目文件,没有节点模块。

在GIT中: Readme.md说运行npm来设置项目。当我运行npm安装,我得到下面的错误列表,我如何通过它?

代码语言:javascript
复制
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   dev eslint-plugin-vue@"^8.0.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!   dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     dev @vue/eslint-config-standard@"^6.1.0" 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 ERR! 
npm ERR! See /Users/dev/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dev/.npm/_logs/2022-06-23T23_17_06_125Z-debug-0.log

EN

回答 1

Stack Overflow用户

发布于 2022-10-09 17:57:35

这个bug看起来很流行,要复制它:

代码语言:javascript
复制
vue create hello-world
Vue CLI v5.0.8
...
npm install

如果您做了:rm -rf node_modules,那么npm install就会得到错误:

代码语言:javascript
复制
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0

直到现在还没有解决办法

谢谢

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72723400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档