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 taro-ui@latest 报错 #1718

Closed
keluokeda opened this issue Dec 8, 2023 · 11 comments
Closed

npm install taro-ui@latest 报错 #1718

keluokeda opened this issue Dec 8, 2023 · 11 comments

Comments

@keluokeda
Copy link

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
MacBook-Pro:demo_2023_12_09 yuyanhui$ npm install taro-ui@latest
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: demo_2023_12_09@1.0.0
npm ERR! Found: @tarojs/plugin-platform-alipay@3.6.4
npm ERR! node_modules/@tarojs/plugin-platform-alipay
npm ERR!   @tarojs/plugin-platform-alipay@"3.6.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @tarojs/plugin-platform-alipay@"3.6.6" from taro-ui@3.2.0
npm ERR! node_modules/taro-ui
npm ERR!   taro-ui@"3.2.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.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/yuyanhui/.npm/_logs/2023-12-08T17_27_55_731Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yuyanhui/.npm/_logs/2023-12-08T17_27_55_731Z-debug-0.log
MacBook-Pro:demo_2023_12_09 yuyanhui$ 
Copy link

taro-ui-bot bot commented Dec 8, 2023

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@robinv8
Copy link
Member

robinv8 commented Dec 10, 2023

是 monorepo 项目吗?

@robinv8 robinv8 self-assigned this Dec 19, 2023
@xiaohaoai
Copy link

看报错taro-ui@3.2.0依赖taro@3.6.6,为什么taro-ui@3.2.0没作更新?

@YangEhz
Copy link

YangEhz commented Dec 26, 2023

我也遇到了同样的问题 = = 自家工具用不了自家 UI 库...离谱

@robinv8
Copy link
Member

robinv8 commented Dec 26, 2023

提供个可复现的 demo 方便排查

@han2722
Copy link

han2722 commented Dec 27, 2023

我也是,我的版本是3.6.21,意思是要降级到3.6.6?这不搞笑吗

@1609960351
Copy link

一样的问题。。

@1609960351
Copy link

其实也可以解决 node版本切低 是可以安装上的 ,然后在把node版本切回去 这时候运行会报Bindings not found,在把依赖包删掉 重新install就可以了

@11273
Copy link

11273 commented Dec 31, 2023

提供个可复现的 demo 方便排查

同样的,taro init myApptaro-ui模板快速创建时自动npm install就报错,都还没开始开发就报错了

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: transit-card-buddy@1.0.0
npm ERR! Found: @tarojs/plugin-platform-alipay@3.6.20
npm ERR! node_modules/@tarojs/plugin-platform-alipay
npm ERR!   @tarojs/plugin-platform-alipay@"3.6.20" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @tarojs/plugin-platform-alipay@"3.6.6" from taro-ui@3.2.0
npm ERR! node_modules/taro-ui
npm ERR!   taro-ui@"*" 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.
npm ERR!
npm ERR! See C:\Users\13638\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

Copy link

taro-ui-bot bot commented Dec 31, 2023

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@robinv8
Copy link
Member

robinv8 commented Jan 3, 2024

找到问题了,我处理下,可以先通过 npm install taro-ui@latest 安装最新版

相同问题:#1732

robinv8 added a commit that referenced this issue Jan 4, 2024
* fix: 修复 taro 模板安装 taro-ui 时的报错
#1732#1718
robinv8 added a commit that referenced this issue Jan 4, 2024
* fix: 修复 taro 模板安装 taro-ui 时的报错
#1732#1718
@robinv8 robinv8 closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants