taro-ui
taro-ui copied to clipboard
[email protected] 安装最新版的taro-ui报错
问题描述
[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
操作系统
- Macos 15.3.2
- Vscode
- bash
same
same
taro脚手架,安装依赖都有冲突,六百六十六
太难了,倒在第一步