-
Couldn't load subscription status.
- Fork 751
Open
Description
问题描述
taro init初始化项目后,安装taro-ui报错
npm install taro-ui@latest
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: test-demo@1.0.0
npm error Found: @types/react@18.3.23
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/taro@4.1.4
npm error node_modules/@tarojs/taro
npm error @tarojs/taro@"4.1.4" from the root project
npm error peer @tarojs/taro@">=3" from taro-ui@3.3.0
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.1.0" from react-native@0.80.1
npm error node_modules/react-native
npm error peer react-native@">=0.62.0" from taro-ui@3.3.0
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/react-native-image-resizer@3.0.11
npm error node_modules/@bam.tech/react-native-image-resizer
npm error peer @bam.tech/react-native-image-resizer@"^3.0.10" from @tarojs/taro-rn@4.1.4
npm error node_modules/@tarojs/taro-rn
npm error peer @tarojs/taro-rn@">=3" from taro-ui@3.3.0
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 i -g @tarojs/cli
- taro init test-demo
- cd test-demo
- npm i taro-ui
期望行为
期望可以正常下载并使用taro-ui
报错信息
系统信息
Taro CLI 4.1.4 environment info:
System:
OS: macOS 15.1.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.4.0 - ~/.nvm/versions/node/v24.4.0/bin/node
npm: 11.4.2 - ~/.nvm/versions/node/v24.4.0/bin/npm
npmPackages:
@tarojs/cli: 4.1.4 => 4.1.4
@tarojs/components: 4.1.4 => 4.1.4
@tarojs/helper: 4.1.4 => 4.1.4
@tarojs/plugin-framework-react: 4.1.4 => 4.1.4
@tarojs/plugin-platform-alipay: 4.1.4 => 4.1.4
@tarojs/plugin-platform-h5: 4.1.4 => 4.1.4
@tarojs/plugin-platform-harmony-hybrid: 4.1.4 => 4.1.4
@tarojs/plugin-platform-jd: 4.1.4 => 4.1.4
@tarojs/plugin-platform-qq: 4.1.4 => 4.1.4
@tarojs/plugin-platform-swan: 4.1.4 => 4.1.4
@tarojs/plugin-platform-tt: 4.1.4 => 4.1.4
@tarojs/plugin-platform-weapp: 4.1.4 => 4.1.4
@tarojs/react: 4.1.4 => 4.1.4
@tarojs/runtime: 4.1.4 => 4.1.4
@tarojs/shared: 4.1.4 => 4.1.4
@tarojs/taro: 4.1.4 => 4.1.4
@tarojs/vite-runner: 4.1.4 => 4.1.4
babel-preset-taro: 4.1.4 => 4.1.4
eslint-config-taro: 4.1.4 => 4.1.4
react: ^18.0.0 => 18.3.1 补充信息
sicraf
Metadata
Metadata
Assignees
Labels
No labels