Skip to content

[email protected] 安装最新版的taro-ui报错 #1838

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

Open
FE-Sequoia opened this issue Mar 17, 2025 · 3 comments
Open

[email protected] 安装最新版的taro-ui报错 #1838

FE-Sequoia opened this issue Mar 17, 2025 · 3 comments

Comments

@FE-Sequoia
Copy link

问题描述

[email protected] 安装最新版的taro-ui报错如下:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @types/[email protected]
npm error node_modules/@types/react
npm error   dev @types/react@"^18.0.0" from the root project
npm error   peerOptional @types/react@"^18" from @tarojs/[email protected]
npm error   node_modules/@tarojs/taro
npm error     @tarojs/taro@"4.0.9" from the root project
npm error     peer @tarojs/taro@">=3" from [email protected]
npm error     node_modules/taro-ui
npm error       taro-ui@"3.3.0" from the root project
npm error     2 more (@tarojs/components, @tarojs/taro-rn)
npm error
npm error Could not resolve dependency:
npm error peerOptional @types/react@"^19.0.0" from [email protected]
npm error node_modules/react-native
npm error   peer react-native@">=0.62.0" from [email protected]
npm error   node_modules/taro-ui
npm error     taro-ui@"3.3.0" from the root project
npm error   peer react-native@"*" from @bam.tech/[email protected]
npm error   node_modules/@bam.tech/react-native-image-resizer
npm error     peer @bam.tech/react-native-image-resizer@"^3.0.10" from @tarojs/[email protected]
npm error     node_modules/@tarojs/taro-rn
npm error       peer @tarojs/taro-rn@">=3" from [email protected]
npm error       node_modules/taro-ui
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

复现步骤

npm install -g @tarojs/cli

taro init myApp

npm install taro-ui

操作系统

  1. Macos 15.3.2
  2. Vscode
  3. bash
@ddxl123
Copy link

ddxl123 commented Mar 21, 2025

same

1 similar comment
@imyuanli
Copy link

imyuanli commented Apr 2, 2025

same

@iiabc
Copy link

iiabc commented Apr 7, 2025

taro脚手架,安装依赖都有冲突,六百六十六

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

4 participants