Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[依赖] npm install 报错 could not resolve #661

Closed
Summer-Shen opened this issue Jan 8, 2024 · 5 comments
Closed

[依赖] npm install 报错 could not resolve #661

Summer-Shen opened this issue Jan 8, 2024 · 5 comments
Assignees

Comments

@Summer-Shen
Copy link
Contributor

Summer-Shen commented Jan 8, 2024

tdesign-vue-next-starter 版本

0.9.0

重现链接

No response

重现步骤

执行 npm install

期望结果

成功安装依赖

实际结果

如下报错信息:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @tencent/[email protected]
npm ERR! Found: @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   dev @typescript-eslint/eslint-plugin@"^6.11.0" from the root project
npm ERR!   @typescript-eslint/eslint-plugin@"^5.59.1" from @vue/[email protected]
npm ERR!   node_modules/@vue/eslint-config-typescript
npm ERR!     dev @vue/eslint-config-typescript@"^12.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @typescript-eslint/eslint-plugin@"^6.11.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"^6.0.0 || ^6.0.0-alpha" from @typescript-eslint/[email protected]      
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     dev @typescript-eslint/eslint-plugin@"^6.11.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.

框架版本

Vue(3.3.4)

浏览器版本

No response

系统版本

No response

Node版本

v20.10.0

补充说明

No response

Copy link
Contributor

github-actions bot commented Jan 8, 2024

👋 @Summer-Shen,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

github-actions bot commented Jan 8, 2024

♥️ 有劳 @timi137137 @liweijie0812 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Summer-Shen

@Summer-Shen Summer-Shen changed the title [依赖] npm install 报错 [依赖] npm install 报错 could not resolve Jan 8, 2024
@Summer-Shen Summer-Shen changed the title [依赖] npm install 报错 could not resolve [依赖] npm install 报错 could not resolve Jan 8, 2024
@timi137137
Copy link
Collaborator

你能截图一下你的项目根目录树吗

@Summer-Shen
Copy link
Contributor Author

Summer-Shen commented Jan 8, 2024

我想改一个 issue,用的是这个仓库的最新版本;

  • 我 2023 年 8 月左右有成功 install 过,最近再 install 就会报错;
  • 如果删除 node_modules 再 install 也会报错。

@timi137137
Copy link
Collaborator

我想改一个 issue,用的是这个仓库的最新版本;

  • 我 2023 年 8 月左右有成功 install 过,最近再 install 就会报错;
  • 如果删除 node_modules 再 install 也会报错。

这个问题和我们没有任何关系,这是NPM的问题

npm ERR! code ERESOLVE

是npm版本不同导致的问题,如果你有更好的建议也可以提出或发pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants