taro-ui icon indicating copy to clipboard operation
taro-ui copied to clipboard

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

Open FE-Sequoia opened this issue 9 months ago • 3 comments

问题描述

[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

FE-Sequoia avatar Mar 17 '25 10:03 FE-Sequoia

same

ddxl123 avatar Mar 21 '25 19:03 ddxl123

same

imyuanli avatar Apr 02 '25 06:04 imyuanli

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

iiabc avatar Apr 07 '25 04:04 iiabc

太难了,倒在第一步

baojunGit avatar Jun 18 '25 08:06 baojunGit